Custom Django email backend for Amazon Simple Email Service (SES) using Boto 3 and Python 3.
If you don't need boto3, use django-ses instead.
$ pip install django-ses-boto3
Add
django_ses_boto3
toINSTALLED_APPS
insettings.py
:INSTALLED_APPS = [ ... 'django_ses_boto3', ]
Update
EMAIL_BACKEND
insettings.py
:EMAIL_BACKEND = 'django_ses_boto3.ses_email_backend.SESEmailBackend'
Set
AWS_SES_REGION_NAME
insettings.py
:AWS_SES_REGION_NAME = 'us-west-2' # or your AWS region
This library uses preconfigured AWS credentials. Configuration instructions: https://boto3.readthedocs.io/en/latest/guide/configuration.html#guide-configuration
Passing credentials as method parameters is NOT supported (or recommended).
- Tests