Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Faisal M
Author

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Share


Tags


avrt

Send mail with Mandrill and Django

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 plug…

Faisal MFaisal M

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.

  1. Go to http://www.mandrill.com/ and create an account if you do not have one already!
  2. 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###

settings.py

INSTALLED_APPS = (
	...,
    'djrill'
)

EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
MANDRILL_API_KEY = "pasteyourapikeyhere"
DEFAULT_FROM_EMAIL = 'Mail from Django <mail@django.com>'
SERVER_EMAIL = 'mail@django.com'

For more info take a look at https://github.com/brack3t/Djrill

That's it!

Faisal M
Author

Faisal M

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

View Comments