A Drop in Replacement for default django email backend based on Amazon SES
Another Django Email Backend on top of Amazon Simple Email Service (SES). Supports
. Using the latest boto3 to make API Calls, Tested using
What is this package about
Every web application needs to send email at some point, may it be verification, password resets, updates etc..., Django by default supports SMTP protocol, simply specify smtp credentials and you are ready to go. But when you use Amazon Services such as SES the preferred way is to access it via its API.
So Here it is guys. Simply install it, give the SES credentials, and start sending Emails. More over if your application is hosted in AWS first ~60000 emails are free every month
Table of Contents
This package is available via pip, So install it using pip
pip install django-ses
and add it in your INSTALLED_APPS section of settings.py
INSTALLED_APPS = [ 'django_ses', ... ]
SES Credential Setup
Obviously you need to have access to an AWS SES account, generate credentials by following this guide or if you already have access keys use it.
in your settings.py add it as follows
SES_ACCESS_KEY = 'xxx' SES_SECRET_KEY = 'xxx' SES_REGION_NAME = 'us-east-1'
SES_REGION_NAME is optional defaults to
Once the setup is done you can send emails as usual, your existing calls to emails should work without any modifications
example 1 - Using
send_mail(subject="Test Subject", message="Message", from_email="email@example.com", recipient_list=['firstname.lastname@example.org'])
example 2 - Using
email = EmailMessage( 'Subject 1', 'Body1 goes here', 'email@example.com', ['firstname.lastname@example.org', 'email@example.com'], reply_to=['firstname.lastname@example.org'], ) email.send()
https://docs.djangoproject.com/en/2.1/topics/email for more details
- Pre Send, Post Send Signals
- Submit issues to Github Issues
- Submit patches to the
- Kindly write tests to justify any additions
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_ses_email_backend-0.0.1-py3-none-any.whl (4.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size django_ses_email_backend-0.0.1.tar.gz (3.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_ses_email_backend-0.0.1-py3-none-any.whl
Hashes for django_ses_email_backend-0.0.1.tar.gz