{ "info": { "author": "Philipp Wassibauer", "author_email": "phil@gidsy.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "================\ntemplated-emails\n================\n\nThis app abstracts the sending of emails in a way so that it is possible to\nswitch from plain text emails to html emails, even if you are using third party apps. \nIt does this by using a very similar mechanism as django-notifications.\n\nEach email gets a folder. In this folder one can put:\n\n* short.txt (for the subject)\n* email.txt (for the plain text email)\n* email.html (optional, if an HTML email should also be sent)\n\nA good practice is to put all emails in an emails/ folder within your templates folder,\nso it is easy to see what emails are being sent by your system.\n\nRecipients can either be an array of emails (as strings) or users.\nIf you pass users it will also try to find the users stored language\n(accounts.Account.language in pinax) and send it using it.\n\nSending an emails works like this::\n\n from templated_emails.utils import send_templated_email\n send_templated_email([\"philipp@gidsy.com\"], \"emails/invite_friends\", {\"my_variable\":\"blafoo\"})\n \nor\n\n::\n \n user = User.objects.get(pk=1)\n # this will try to switch to the correct language of the user\n send_templated_email([user], \"emails/invite_friends\", {\"my_variable\":\"blafoo\"})\n \nThe system will add current_site (the Site object of the Django Project)\nand STATIC_URL (for linking in static content) to the context of your templates.\n\n\nLanguage\n========\nSimilar to django-notification the system will try to look for the language the\nuser has set in his Account (but can be configured to other Models using settings.NOTIFICATION_LANGUAGE_MODULE)\nto server the right language to each user.\n\n\nInline CSS Rules\n================\n\nInline CSS Rules are annoying and tedious, but a neccessity if you want to support all email clients.\nSince 0.3 pynliner is included that will take the CSS from the HEAD and put it into each element that matches the rule\n\nThere is a toggle you can set in settings.py to turn this feature on or off:\nTEMPLATEDEMAILS_USE_PYNLINER = False is the default value.\n\n\nCelery\n======\n\nPynliner can be quite slow when inlining CSS. You can move all the execution\nto Celery with this setting (default is False)::\n\n TEMPLATEDEMAILS_USE_CELERY = True\n\nPlease note that the given context is passed to Celery unchanged.\n\n\nInstall\n=======\n\n::\n\n pip install -e http://github.com/philippWassibauer/templated-emails.git#egg=templated-emails\n\nor\n\n::\n\n pip install templated-emails\n\n\nDependencies\n============\n* pynliner\n* cssutils\n\nFollow Me\n=========\n\n* http://github.com/philippWassibauer\n* http://twitter.com/scalar\n* http://philippw.tumblr.com\n* https://bitbucket.org/philippwassibauer", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/philippWassibauer/templated-emails", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "templated-emails", "package_url": "https://pypi.org/project/templated-emails/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/templated-emails/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/philippWassibauer/templated-emails" }, "release_url": "https://pypi.org/project/templated-emails/0.6.9/", "requires_dist": null, "requires_python": null, "summary": "Like django-notifications, but just for sending plain emails. Written because it is annoying to fork other apps just to make an email into an HTML email", "version": "0.6.9" }, "last_serial": 800428, "releases": { "0.3": [], "0.4": [], "0.6.2": [ { "comment_text": "", "digests": { "md5": "a6d613399859ba4c627d9c06f8bb2312", "sha256": "b11aa4b746317a2d34393d27da771469006dc179e83e53270c68ed43dfec24e8" }, "downloads": -1, "filename": "templated-emails-0.6.2.tar.gz", "has_sig": false, "md5_digest": "a6d613399859ba4c627d9c06f8bb2312", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5833, "upload_time": "2011-12-23T16:16:19", "url": "https://files.pythonhosted.org/packages/bb/a4/16699cb4695b65be2a8f25ad2b61f0f70a4a0a33cc80027bfcee290bf41c/templated-emails-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "aacf05402333b0195ddcb8995116bb01", "sha256": "e48b317673b53d23d49053fad2f3240f58b9dcd25057ba1a6dbd2d8ab890214a" }, "downloads": -1, "filename": "templated-emails-0.6.3.tar.gz", "has_sig": false, "md5_digest": "aacf05402333b0195ddcb8995116bb01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6138, "upload_time": "2011-12-23T16:28:45", "url": "https://files.pythonhosted.org/packages/69/82/87943bcd98e2391b3a35ef22dab9d276c6cf1c0d8f50860e2039039442fe/templated-emails-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "8314babceaf3e47a32c608c71f3f2ea4", "sha256": "8a7afac27905181e6eb3b4c7c74b1982585e14ea145a3872cfec9cec8c46cb5f" }, "downloads": -1, "filename": "templated-emails-0.6.4.tar.gz", "has_sig": false, "md5_digest": "8314babceaf3e47a32c608c71f3f2ea4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6199, "upload_time": "2011-12-28T23:34:05", "url": "https://files.pythonhosted.org/packages/ed/9a/aa82a49d7e97b67caeb3521126d23df78f5261a16a4ea3c5d4c85079ecfc/templated-emails-0.6.4.tar.gz" } ], "0.6.5": [ { "comment_text": "", "digests": { "md5": "924aa828c4d4314ca8741bb07f8233f3", "sha256": "889b94ff11d722cca008cbc8f9bf3789962675d2c50f857c943a31b773f9b705" }, "downloads": -1, "filename": "templated-emails-0.6.5.tar.gz", "has_sig": false, "md5_digest": "924aa828c4d4314ca8741bb07f8233f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7156, "upload_time": "2011-12-29T10:03:48", "url": "https://files.pythonhosted.org/packages/97/93/44af296fb7cd2e95ddc6fcd14d9807f8271197db07e9c5546c19ee3a2f3b/templated-emails-0.6.5.tar.gz" } ], "0.6.6": [ { "comment_text": "", "digests": { "md5": "4b85feb5f80ca6ade1a50ceb515176d1", "sha256": "98fcfb4a5312dc14ab43e3aa4e883c7e95e426c6e0c5112bd90d93931bcf83f4" }, "downloads": -1, "filename": "templated-emails-0.6.6.tar.gz", "has_sig": false, "md5_digest": "4b85feb5f80ca6ade1a50ceb515176d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8623, "upload_time": "2012-07-25T14:07:42", "url": "https://files.pythonhosted.org/packages/e9/9a/5d3bc8e12216a2f67d01d69d3f04857f0c94bd7446d114328e97b99636ac/templated-emails-0.6.6.tar.gz" } ], "0.6.7": [ { "comment_text": "", "digests": { "md5": "023ca3f65490a15321dbdb9d90a9f960", "sha256": "e7b271db47196d025122e2a9613b8cff687a487a6e78a6049bd6aea724ec734b" }, "downloads": -1, "filename": "templated-emails-0.6.7.tar.gz", "has_sig": false, "md5_digest": "023ca3f65490a15321dbdb9d90a9f960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8648, "upload_time": "2012-10-08T07:59:20", "url": "https://files.pythonhosted.org/packages/fb/66/1f7dd60ff4df59e658f356779f8a1cd7de81a7921f466c6b178ba833fa1e/templated-emails-0.6.7.tar.gz" } ], "0.6.8": [ { "comment_text": "", "digests": { "md5": "b89e545101b51aa8e3711d5ec55179fc", "sha256": "fcded7780e9855d5d921598ce8d2329a90ae6e904e66a00204dbaaa97d60a6cc" }, "downloads": -1, "filename": "templated-emails-0.6.8.tar.gz", "has_sig": false, "md5_digest": "b89e545101b51aa8e3711d5ec55179fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8651, "upload_time": "2012-10-08T08:27:54", "url": "https://files.pythonhosted.org/packages/07/d7/b20ea9c861bdbf57abf4436207d48107a4775556b01ac9f23218043ee8a1/templated-emails-0.6.8.tar.gz" } ], "0.6.9": [ { "comment_text": "", "digests": { "md5": "1b7070f615add2f836e0d0e10424fc71", "sha256": "a061a6a3008583ea7c2dbded11ae1801a97cae314aa6dc0f1c1cfd568f77764c" }, "downloads": -1, "filename": "templated-emails-0.6.9.tar.gz", "has_sig": false, "md5_digest": "1b7070f615add2f836e0d0e10424fc71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9066, "upload_time": "2012-10-08T08:33:07", "url": "https://files.pythonhosted.org/packages/b3/ea/f563fee5b11c88bebe9e2a8248be838f82edd59c2d7f7b57752f3d8aa835/templated-emails-0.6.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1b7070f615add2f836e0d0e10424fc71", "sha256": "a061a6a3008583ea7c2dbded11ae1801a97cae314aa6dc0f1c1cfd568f77764c" }, "downloads": -1, "filename": "templated-emails-0.6.9.tar.gz", "has_sig": false, "md5_digest": "1b7070f615add2f836e0d0e10424fc71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9066, "upload_time": "2012-10-08T08:33:07", "url": "https://files.pythonhosted.org/packages/b3/ea/f563fee5b11c88bebe9e2a8248be838f82edd59c2d7f7b57752f3d8aa835/templated-emails-0.6.9.tar.gz" } ] }