{ "info": { "author": "Josh Turmel", "author_email": "jt@futurehaus.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Communications :: Email", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django-SendGrid-GAE\n===============\n\nSimple Django backend to send email using SendGrid's Web API on GAE using task queues.\n\nInstallation\n------------\n\nInstall the backend from PyPI:\n\n.. code:: bash\n\n pip install fh-django-sendgrid-gae\n\nAdd the following to your project's **settings.py**:\n\n.. code:: python\n\n EMAIL_BACKEND = \"sgbackend.SendGridBackend\"\n SENDGRID_API_KEY = \"Your SendGrid API Key\"\n\n**Done!**\n\nExample\n-------\n\n.. code:: python\n\n\n from django.core.mail import send_mail\n from django.core.mail import EmailMultiAlternatives\n\n send_mail(\"Your Subject\", \"This is a simple text email body.\",\n \"Test User \", [\"test@example.com\"])\n\n # or\n mail = EmailMultiAlternatives(\n subject=\"Your Subject\",\n body=\"This is a simple text email body.\",\n from_email=\"Test User \",\n to=[\"test@example.com\"],\n headers={\"Reply-To\": \"tester@example.com\"}\n )\n # Add template\n mail.template_id = 'YOUR TEMPLATE ID FROM SENDGRID ADMIN'\n\n # Replace substitutions in sendgrid template\n mail.substitutions = {'%username%': 'testuser'}\n\n # Attach file\n with open('somefilename.pdf', 'rb') as file:\n mail.attachments = [\n ('somefilename.pdf', file.read(), 'application/pdf')\n ]\n\n mail.attach_alternative(\n \"

This is a simple HTML email body

\", \"text/html\"\n )\n\n mail.send()\n\n\nLicense\n-------\nMIT\n\n\nEnjoy :)", "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/thefuturehaus/django-sendgrid-gae", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fh-django-sendgrid-gae", "package_url": "https://pypi.org/project/fh-django-sendgrid-gae/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fh-django-sendgrid-gae/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/thefuturehaus/django-sendgrid-gae" }, "release_url": "https://pypi.org/project/fh-django-sendgrid-gae/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "SendGrid Backend for Django on GAE using task queues", "version": "0.2.1" }, "last_serial": 2963041, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "117a1d557be779ef942cb0588df7101e", "sha256": "79f7051b5917bca30dfc796f6b7e2777bc2afbf47fc73baf49d49aa61be206db" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.1.0.tar.gz", "has_sig": false, "md5_digest": "117a1d557be779ef942cb0588df7101e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3536, "upload_time": "2016-02-29T05:08:20", "url": "https://files.pythonhosted.org/packages/80/23/3490d28b008f96870ddebc8568edc9f575de88ee69171c39439ec27f553b/fh-django-sendgrid-gae-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a4eb57c010b94f5a390d7e8f94040512", "sha256": "0977860af79e914dbb2b9ef4901cb30763946135c41f0e37685a36680e953fb1" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a4eb57c010b94f5a390d7e8f94040512", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3532, "upload_time": "2016-02-29T05:30:45", "url": "https://files.pythonhosted.org/packages/85/25/54eba601990fd221ee5ab0f414815db297d63496827c3fa69bfe207b0c9b/fh-django-sendgrid-gae-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "75deb2939ba12f06d946e7afde6470bd", "sha256": "6370d89bef4d01a3775a5ff87c49098f48719d64a52e6e745e348e7895ab3840" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.1.2.tar.gz", "has_sig": false, "md5_digest": "75deb2939ba12f06d946e7afde6470bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3539, "upload_time": "2016-08-10T16:25:34", "url": "https://files.pythonhosted.org/packages/b1/b1/722ac1b6d8b9ada72ae9e3c1f0a16541adfc808ad1620a31e9d115d57a8c/fh-django-sendgrid-gae-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3dd3c4a7feb3460d9da332188b96f9cd", "sha256": "93a3ec1a874d41d16bab56b14cea7f81ffbcfef11c449d18a82d68650da250a8" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3dd3c4a7feb3460d9da332188b96f9cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4168, "upload_time": "2017-06-20T18:40:12", "url": "https://files.pythonhosted.org/packages/92/77/83e8f5a561f17f60d56a28e1863de1ad6dc6f5e873e3594586097a5c305f/fh-django-sendgrid-gae-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "78db2fa6f1abd33230c536c2ecab8e27", "sha256": "144d44fc39c683441a1f8fab0436576c322d39b6926cbaf8fd50b14f5e7c6fc0" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.2.1.tar.gz", "has_sig": false, "md5_digest": "78db2fa6f1abd33230c536c2ecab8e27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4164, "upload_time": "2017-06-20T20:00:54", "url": "https://files.pythonhosted.org/packages/de/25/9d8ea60160fa9e266fc98df440e2ad014051a3ccbe724db9817d5f3c699f/fh-django-sendgrid-gae-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "78db2fa6f1abd33230c536c2ecab8e27", "sha256": "144d44fc39c683441a1f8fab0436576c322d39b6926cbaf8fd50b14f5e7c6fc0" }, "downloads": -1, "filename": "fh-django-sendgrid-gae-0.2.1.tar.gz", "has_sig": false, "md5_digest": "78db2fa6f1abd33230c536c2ecab8e27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4164, "upload_time": "2017-06-20T20:00:54", "url": "https://files.pythonhosted.org/packages/de/25/9d8ea60160fa9e266fc98df440e2ad014051a3ccbe724db9817d5f3c699f/fh-django-sendgrid-gae-0.2.1.tar.gz" } ] }