{ "info": { "author": "Tom\u00e1\u0161 Ehrlich", "author_email": "tomas.ehrlich@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========\nDjango-SES\n==========\n:Info: A Django email backend for Amazon's Simple Email Service\n:Author: Harry Marr (http://github.com/hmarr, http://twitter.com/harrymarr)\n:Collaborators: Paul Craciunoiu (http://github.com/pcraciunoiu, http://twitter.com/embrangler)\n\n**Attention:** This project is not actively maintained as of ~end 2012, but it is still fairly popular and in use.\nIf you are interested in helping out, please contact `Paul Craciunoiu (pcraciunoiu)`_.\n\n.. _Paul Craciunoiu (pcraciunoiu): https://github.com/pcraciunoiu/\n\nA bird's eye view\n=================\nDjango-SES is a drop-in mail backend for Django_. Instead of sending emails\nthrough a traditional SMTP mail server, Django-SES routes email through\nAmazon Web Services' excellent Simple Email Service (SES_).\n\n\nUsing Django directly\n=====================\n\nAmazon SES allows you to also setup usernames and passwords. If you do configure\nthings that way, you do not need this package. The Django default email backend\nis capable of authenticating with Amazon SES and correctly sending email.\n\nUsing django-ses gives you additional features like deliverability reports that\ncan be hard and/or cumbersome to obtain when using the SMTP interface.\n\n**Note:** In order to use smtp with Amazon SES, you may have to install some\nsupporting packages for ssl. Check out `this SMTP SSL email backend for Django`__\n\nWhy SES instead of SMTP?\n========================\nConfiguring, maintaining, and dealing with some complicated edge cases can be\ntime-consuming. Sending emails with Django-SES might be attractive to you if:\n\n* You don't want to maintain mail servers.\n* You are already deployed on EC2 (In-bound traffic to SES is free from EC2\n instances).\n* You need to send a high volume of email.\n* You don't want to have to worry about PTR records, Reverse DNS, email\n whitelist/blacklist services.\n* Django-SES is a truely drop-in replacement for the default mail backend.\n Your code should require no changes.\n\nGetting going\n=============\nAssuming you've got Django_ installed, you'll need Boto_ 2.1.0 or higher. Boto_\nis a Python library that wraps the AWS API.\n\nYou can do the following to install boto 2.1.0 (we're using --upgrade here to\nmake sure you get 2.1.0)::\n\n pip install --upgrade boto\n\nInstall django-ses::\n\n pip install django-ses\n\nAdd the following to your settings.py::\n\n EMAIL_BACKEND = 'django_ses.SESBackend'\n\n # These are optional -- if they're set as environment variables they won't\n # need to be set here as well\n AWS_ACCESS_KEY_ID = 'YOUR-ACCESS-KEY-ID'\n AWS_SECRET_ACCESS_KEY = 'YOUR-SECRET-ACCESS-KEY'\n\n # Additionally, you can specify an optional region, like so:\n AWS_SES_REGION_NAME = 'us-east-1'\n AWS_SES_REGION_ENDPOINT = 'email.us-east-1.amazonaws.com'\n\nAlternatively, instead of `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, you\ncan include the following two settings values. This is useful in situations\nwhere you would like to use a separate access key to send emails via SES than\nyou would to upload files via S3::\n\n AWS_SES_ACCESS_KEY_ID = 'YOUR-ACCESS-KEY-ID'\n AWS_SES_SECRET_ACCESS_KEY = 'YOUR-SECRET-ACCESS-KEY'\n\nNow, when you use ``django.core.mail.send_mail``, Simple Email Service will\nsend the messages by default.\n\nSince SES imposes a rate limit and will reject emails after the limit has been\nreached, django-ses will attempt to conform to the rate limit by querying the\nAPI for your current limit and then sending no more than that number of\nmessages in a two-second period (which is half of the rate limit, just to\nbe sure to stay clear of the limit). This is controlled by the following setting:\n\n AWS_SES_AUTO_THROTTLE = 0.5 # (default; safety factor applied to rate limit)\n\nTo turn off automatic throttling, set this to None.\n\nCheck out the ``example`` directory for more information.\n\nDKIM\n====\n\nUsing DomainKeys_ is entirely optional, however it is recommended by Amazon for\nauthenticating your email address and improving delivery success rate. See\nhttp://docs.amazonwebservices.com/ses/latest/DeveloperGuide/DKIM.html.\nBesides authentication, you might also want to consider using DKIM in order to\nremove the `via email-bounces.amazonses.com` message shown to gmail users - \nsee http://support.google.com/mail/bin/answer.py?hl=en&answer=1311182.\n\nTo enable DKIM signing you should install the pydkim_ package and specify values\nfor the ``DKIM_PRIVATE_KEY`` and ``DKIM_DOMAIN`` settings. You can generate a\nprivate key with a command such as ``openssl genrsa 512`` and get the public key\nportion with ``openssl rsa -pubout `_\n\n#. Write and run tests.\n Write your own test showing the issue has been resolved, or the feature\n works as intended.\n\nRunning Tests\n=============\nTo run the tests::\n\n python manage.py test django_ses", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tricoder42/django-ses/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-ses3", "package_url": "https://pypi.org/project/django-ses3/", "platform": "any", "project_url": "https://pypi.org/project/django-ses3/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/tricoder42/django-ses/" }, "release_url": "https://pypi.org/project/django-ses3/0.7.0/", "requires_dist": null, "requires_python": null, "summary": "A Django email backend for Amazon's Simple Email Service", "version": "0.7.0" }, "last_serial": 1355520, "releases": { "0.7.0": [ { "comment_text": "", "digests": { "md5": "274be0a683f2a3972bebc2d4ebe844d0", "sha256": "93a4326e9736c0c92084b13d9615363a36831924ae96eca568341e040ac8e8e1" }, "downloads": -1, "filename": "django-ses3-0.7.0.tar.gz", "has_sig": false, "md5_digest": "274be0a683f2a3972bebc2d4ebe844d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31177, "upload_time": "2014-12-20T16:49:30", "url": "https://files.pythonhosted.org/packages/e6/f1/add07237bda5215b8b1284af73e25f6a512034eca2398828ec6f3a610a0d/django-ses3-0.7.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "274be0a683f2a3972bebc2d4ebe844d0", "sha256": "93a4326e9736c0c92084b13d9615363a36831924ae96eca568341e040ac8e8e1" }, "downloads": -1, "filename": "django-ses3-0.7.0.tar.gz", "has_sig": false, "md5_digest": "274be0a683f2a3972bebc2d4ebe844d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31177, "upload_time": "2014-12-20T16:49:30", "url": "https://files.pythonhosted.org/packages/e6/f1/add07237bda5215b8b1284af73e25f6a512034eca2398828ec6f3a610a0d/django-ses3-0.7.0.tar.gz" } ] }