Mandrill is a great service for sending mail from your app. In this tutorial I will show you how simple it is to use Mandrill with Django thru the use of a plugin called djrill.
- Go to http://www.mandrill.com/ and create an account if you do not have one already!
- Create an API key by clicking on "Settings" and then "SMTP & API Info"
Install the djrill Django app
pip install djrill
Changes to your settings.py file
INSTALLED_APPS = ( ..., 'djrill' ) EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend" MANDRILL_API_KEY = "pasteyourapikeyhere" DEFAULT_FROM_EMAIL = 'Mail from Django <firstname.lastname@example.org>' SERVER_EMAIL = 'email@example.com'
For more info take a look at https://github.com/brack3t/Djrill