{ "info": { "author": "Chathan Driehuys", "author_email": "chathan@driehuys.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "##################\ndjango-email-utils\n##################\n\n.. image:: https://img.shields.io/travis/com/cdriehuys/django-email-utils/master\n :alt: Travis CI Status\n :target: https://travis-ci.com/cdriehuys/django-email-utils\n\n.. image:: https://img.shields.io/codecov/c/github/cdriehuys/django-email-utils.svg\n :alt: Codecov\n :target: https://codecov.io/gh/cdriehuys/django-email-utils\n\n.. image:: https://img.shields.io/pypi/v/django-email-utils\n :alt: PyPI\n :target: https://pypi.org/project/django-email-utils/\n\n.. image:: https://img.shields.io/github/license/cdriehuys/django-email-utils\n :alt: GitHub License\n :target: https://github.com/cdriehuys/django-email-utils/blob/master/LICENSE\n\n\nA utility function to ease the process of sending templated emails with Django.\n\n\n************\nRequirements\n************\n\n* Python version 3.5 or higher\n* Django version 2.2 or higher\n\n************\nInstallation\n************\n\nInstall from PyPI::\n\n pip install django-email-utils\n\n\n*****\nUsage\n*****\n\n``email_utils.send_email(template_name, context=None, **kwargs)``\n=================================================================\n\nSend templated emails containing HTML, plain text, or both. The function is a\nthin wrapper around Django's ``send_mail`` function that loads the email content\nfrom a template.\n\nExample::\n\n from email_utils import send_email\n\n\n send_email(\n context={'foo': 'bar'},\n from_email='no-reply@myproject.com',\n recipient_list=['test@example.com'],\n subject='My Templated Email',\n template_name='myapp/template',\n )\n\nParameters\n----------\n\n``template_name``\n The base name of the templates to use. The function then looks for the\n templates ``{template_name}.html`` and ``{template_name}.txt``.\n\n``context``\n The context used to render the templates. Defaults to an empty dictionary.\n\n``**kwargs``\n Additional keyword arguments to pass to Django's ``send_mail`` function.\n\nRaises\n------\n\n``email_utils.NoTemplatesException``\n If neither the HTML nor plain text templates are found.\n\n*******\nTesting\n*******\n\nTests are run using pytest. To run the tests, install the requirements and then\nexecute the tests::\n\n pip install -r requirements/test.txt\n pytest\n\n*******\nLicense\n*******\n\nThis project is licensed under the MIT License.\n\n\n*******\nAuthors\n*******\n\nChathan Driehuys (chathan@driehuys.com)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cdriehuys/django-email-utils", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-email-utils", "package_url": "https://pypi.org/project/django-email-utils/", "platform": "", "project_url": "https://pypi.org/project/django-email-utils/", "project_urls": { "Homepage": "https://github.com/cdriehuys/django-email-utils" }, "release_url": "https://pypi.org/project/django-email-utils/1.0.0/", "requires_dist": [ "Django (>=2.1)" ], "requires_python": "", "summary": "Django utility for sending email messages.", "version": "1.0.0" }, "last_serial": 5817551, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "3337af8d8b85764dfd4038b6b46faa34", "sha256": "68ddd14fa57ef762173084b56c5c6aff35712b6e68dec04512c1b8becef6be1e" }, "downloads": -1, "filename": "django_email_utils-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3337af8d8b85764dfd4038b6b46faa34", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3943, "upload_time": "2018-06-28T00:08:25", "url": "https://files.pythonhosted.org/packages/7b/f6/cd984e0e79cd9c52c2fbab9667cbadf8e544346c1054aad51f8df891bd13/django_email_utils-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "594b8d5a95f86e0b5ecc735e7ff6a430", "sha256": "988fd1038608b78c2ef5869920c6406694d726d5c383d56dd05feecebfc5f992" }, "downloads": -1, "filename": "django-email-utils-0.1.1.tar.gz", "has_sig": false, "md5_digest": "594b8d5a95f86e0b5ecc735e7ff6a430", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4246, "upload_time": "2018-06-28T00:08:26", "url": "https://files.pythonhosted.org/packages/6e/c6/7058913f9ad32d554b6db9a5c809e14b500322693946971087e1e88a4398/django-email-utils-0.1.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "7b93e682ea37950608fe92f29375c176", "sha256": "cc5b5627c25acd02898bafb25c9ed98e61d4755c45952cda4caeff4d1900068c" }, "downloads": -1, "filename": "django_email_utils-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b93e682ea37950608fe92f29375c176", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5320, "upload_time": "2019-09-12T00:42:27", "url": "https://files.pythonhosted.org/packages/ea/51/87c302a8b33802be62d156f39ee4e20af23aa48c9bb21fbca2f8acbb4be4/django_email_utils-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "020700a23d7473b734ec6003d4ef08e6", "sha256": "449c07ea11f5fc0e882d20a82c408a79064c55355cc81ae1ac3278752e891d5f" }, "downloads": -1, "filename": "django-email-utils-1.0.0.tar.gz", "has_sig": false, "md5_digest": "020700a23d7473b734ec6003d4ef08e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4919, "upload_time": "2019-09-12T00:42:29", "url": "https://files.pythonhosted.org/packages/a0/65/40a60d55aa2cc93dd5a806bcad5486bd8fe672a96c0a6b599dd772ed4f83/django-email-utils-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b93e682ea37950608fe92f29375c176", "sha256": "cc5b5627c25acd02898bafb25c9ed98e61d4755c45952cda4caeff4d1900068c" }, "downloads": -1, "filename": "django_email_utils-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b93e682ea37950608fe92f29375c176", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5320, "upload_time": "2019-09-12T00:42:27", "url": "https://files.pythonhosted.org/packages/ea/51/87c302a8b33802be62d156f39ee4e20af23aa48c9bb21fbca2f8acbb4be4/django_email_utils-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "020700a23d7473b734ec6003d4ef08e6", "sha256": "449c07ea11f5fc0e882d20a82c408a79064c55355cc81ae1ac3278752e891d5f" }, "downloads": -1, "filename": "django-email-utils-1.0.0.tar.gz", "has_sig": false, "md5_digest": "020700a23d7473b734ec6003d4ef08e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4919, "upload_time": "2019-09-12T00:42:29", "url": "https://files.pythonhosted.org/packages/a0/65/40a60d55aa2cc93dd5a806bcad5486bd8fe672a96c0a6b599dd772ed4f83/django-email-utils-1.0.0.tar.gz" } ] }