{ "info": { "author": "Regulus Ltd", "author_email": "reg@regulusweb.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Communications :: Email", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django Postmark Utils\n\nDjango utilities to help track emails sent using Postmark.\n\n## Features\n\n- Store emails (including failed attempts) sent from within your project\n- Receive and store webhook notifications, for email bounces and deliveries\n- Track sent emails for errors, bounces, and deliveries\n- Resend emails\n\n## Prerequisites\n\n- [Django](https://www.djangoproject.com/)\n- [Postmark](https://postmarkapp.com/) account\n\n## Installation\n\n```\n$ pip install git+https://github.com/regulusweb/django-postmark-utils.git\n```\n\nDjango Postmark Utils makes use of the Django email backend provided by [Postmarker](https://postmarker.readthedocs.io/en/latest/), so first configure it in your project's settings, as per the [documentation](https://postmarker.readthedocs.io/en/latest/django.html).\n\n```python\nEMAIL_BACKEND = 'postmarker.django.EmailBackend'\nPOSTMARK = {\n 'TOKEN': '',\n 'TEST_MODE': False,\n 'VERBOSITY': 0,\n}\n```\n\nAdd the app to your project's `INSTALLED_APPS` setting:\n\n```python\nINSTALLED_APPS = (\n 'django_postmark_utils',\n)\n```\n\nCreate the required database tables:\n\n```\n$ python manage.py migrate django_postmark_utils\n```\n\nTo receive [bounce](https://postmarkapp.com/developer/webhooks/bounce-webhook) and [delivery](https://postmarkapp.com/developer/webhooks/delivery-webhook) [webhook notifications](https://postmarkapp.com/developer/webhooks/webhooks-overview) from Postmark, configure the webhook URLs in your project's URL configuration:\n\n```python\nurlpatterns = [\n url(r'^postmark/', include('django_postmark_utils.urls')),\n]\n```\n\nIn your project's settings, configure a secret to be added to the webhook URLs:\n\n```python\nPOSTMARK_UTILS_SECRET = ''\n```\n\nAdd the webhook URLs to your Postmark account:\n\n`https://example.com/postmark//bounce-receiver/`\n`https://example.com/postmark//delivery-receiver/`\n\nOptionally change the default email header field name (`X-DjangoPostmarkUtils-Resend-For`) used to match resent emails to the messages they are for, in your project's settings:\n\n```python\nMESSAGE_ID_HEADER_FIELD_NAME = ''\n```\n\n## Usage\n\nEmails (including failed attempts) sent via the Postmarker email backend will be stored in the database, and can be viewed in the admin.\n\nIn the email change page, clicking on the `Go to resend list` link next to the `Resend` field will send you to a list from where you can use the `Resend emails` admin action to resend the email.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/regulusweb/django-postmark-utils", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-postmark-utils", "package_url": "https://pypi.org/project/django-postmark-utils/", "platform": "", "project_url": "https://pypi.org/project/django-postmark-utils/", "project_urls": { "Homepage": "https://github.com/regulusweb/django-postmark-utils" }, "release_url": "https://pypi.org/project/django-postmark-utils/0.1/", "requires_dist": [ "postmarker (>=0.11.3)", "python-dateutil (>=2.0)" ], "requires_python": ">=3.4", "summary": "Django utilities to help track emails sent using Postmark", "version": "0.1" }, "last_serial": 3567046, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7bb81a493b8ba151d27fabbe40fff1e4", "sha256": "f033d7054faed54f8130d1ee77fab4b7ac83e5fa99590239080045e41d904ece" }, "downloads": -1, "filename": "django_postmark_utils-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7bb81a493b8ba151d27fabbe40fff1e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 17403, "upload_time": "2018-02-09T12:23:00", "url": "https://files.pythonhosted.org/packages/b1/9b/ba479d04c386590e8055b8bd68e3936b370b47a3caa4bc8cc08f07215dae/django_postmark_utils-0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7bb81a493b8ba151d27fabbe40fff1e4", "sha256": "f033d7054faed54f8130d1ee77fab4b7ac83e5fa99590239080045e41d904ece" }, "downloads": -1, "filename": "django_postmark_utils-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7bb81a493b8ba151d27fabbe40fff1e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 17403, "upload_time": "2018-02-09T12:23:00", "url": "https://files.pythonhosted.org/packages/b1/9b/ba479d04c386590e8055b8bd68e3936b370b47a3caa4bc8cc08f07215dae/django_postmark_utils-0.1-py3-none-any.whl" } ] }