{ "info": { "author": "Jivan Amara", "author_email": "Development@JivanAmara.net", "bugtrack_url": null, "classifiers": [ "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4" ], "description": "======================\nConfirmed Email Sender\n======================\n\nThis package provides a drop-in replacements for shortcut send_mail() and class \n\"EmailMultiAlternatives\" which ensures that destination addresses are confirmed\nbefore sending email to them.\n\nThe shortcut \"send_mail_confirmed()\" and class \"ConfirmedEmailMessage\" send email only\nto confirmed addresses and automatically send confirmation messages to unconfirmed addresses.\nIt handles the confirmation process via a url in the confirmation message.\n\nMessages for unconfirmed addresses will be queued until the address is confirmed\nor a timeout period defaulting to 3 days elapses.\n\nThis app is configured with the same settings as Django's email backend plus\nEMAIL_CONFIRMATION_WAIT which is an integer specifying the number of days to keep\nqueued messages for an unconfirmed address before deleting them. This setting\ndefaults to 3. You also need a valid domain name for Django's Sites framework\nso the confirmation link is at the correct host.\n\nIf you're unfamiliar with the Sites framework, look for 'Sites' in the Django admin,\nit should be self-explanatory.\n\nConfirmedEmailMessage.send() and send_email_confirmed() differ from the originals in\ntheir return values. Instead of a return value of 0/1 to indicate failure/success there\ncan be a different status for each destination address. These return instead a dictionary with\neach destination address as a key and a state indicating\nsuccess/failure/queued pending confirmation; see the documentation for\nsender.ConfirmedEmailMessage.sent() for details.\nThis allows you to display a message indicating that confirmation is necessary if appropriate.\n\nsettings variables:\n\nEMAIL_CONFIRMATION_WAIT: Number of days to wait between sending confirmation emails.\n Defaults to 3 days.\n\nEMAIL_CONFIRMATION_TEMPLATE: Template to use as the body of confirmation emails.\n It's important for this template to contain a link for the user to click on\n passed to the template via variable {{confirmation_link}}. See default template\n 'confirmation_email.txt' for an example.\n\nADDRESS_CONFIRMED_TEMPLATE: Template displayed to a user when they click on a confirmation link.\n Defaults to 'address_confirmed.html' and has template variable\n {{email_address}} passed to it.\n\nExample (view) usage:\n\n destination_address = 'noone@nowhere.com'\n cem = ConfirmedEmailMessage(\n subject='No Subject Needed',\n body='Hi there.',\n from_email='someservice@nowhere.com',\n to=[destination_address],\n )\n\n send_results = cem.send()\n if send_results[destination_address] == 'queued':\n template = 'confirmation_required.html'\n context = {'email_address': destination_address}\n return render(request, template, context)", "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/JivanAmara/confirmed-email", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-confirmed-email", "package_url": "https://pypi.org/project/django-confirmed-email/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-confirmed-email/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/JivanAmara/confirmed-email" }, "release_url": "https://pypi.org/project/django-confirmed-email/0.0.7/", "requires_dist": null, "requires_python": null, "summary": "Provides an email sender that automatically confirms addresses.", "version": "0.0.7" }, "last_serial": 2159607, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "a5c23cbeb1a7ed2ad99aa6d1c446adbc", "sha256": "84c8b87c899c1238779e70617cc9d14a72885675027e49d1c7453654779109cc" }, "downloads": -1, "filename": "django-confirmed-email-0.0.4.tar.gz", "has_sig": false, "md5_digest": "a5c23cbeb1a7ed2ad99aa6d1c446adbc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6890, "upload_time": "2016-06-09T19:30:15", "url": "https://files.pythonhosted.org/packages/e1/2f/0c93516738d1ba6de10d592bbd790f8197c143cfceec127486f9c47737fc/django-confirmed-email-0.0.4.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "3846cdbceeec9f458d86054c73d3f90c", "sha256": "052c360f2283e068e0d2e809186e3da079021cf31d17f43e95a89651616fc853" }, "downloads": -1, "filename": "django-confirmed-email-0.0.6.tar.gz", "has_sig": false, "md5_digest": "3846cdbceeec9f458d86054c73d3f90c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7082, "upload_time": "2016-06-09T22:38:39", "url": "https://files.pythonhosted.org/packages/d3/48/cf3b60671361cfb23d3301274f922650f8fcc6fb127beaaa62be2e58aa35/django-confirmed-email-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "3c817a1259cc93271aa256c20a1e2931", "sha256": "3532e1d39670483d4570ee75b445f2bbd175e04e562b79e683706b7e961b3103" }, "downloads": -1, "filename": "django-confirmed-email-0.0.7.tar.gz", "has_sig": false, "md5_digest": "3c817a1259cc93271aa256c20a1e2931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7071, "upload_time": "2016-06-09T22:58:34", "url": "https://files.pythonhosted.org/packages/14/ce/e229111b114b03ca01959b8522a4a56bf1385aa90c8daf93cbb96adb126e/django-confirmed-email-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c817a1259cc93271aa256c20a1e2931", "sha256": "3532e1d39670483d4570ee75b445f2bbd175e04e562b79e683706b7e961b3103" }, "downloads": -1, "filename": "django-confirmed-email-0.0.7.tar.gz", "has_sig": false, "md5_digest": "3c817a1259cc93271aa256c20a1e2931", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7071, "upload_time": "2016-06-09T22:58:34", "url": "https://files.pythonhosted.org/packages/14/ce/e229111b114b03ca01959b8522a4a56bf1385aa90c8daf93cbb96adb126e/django-confirmed-email-0.0.7.tar.gz" } ] }