Install & Compatibility
Where this runs
tested against v4.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 99.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.6s · import 0.000s · 100MB
99MB installed
● package 99MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
EmailBackend
✓ from django_amazon_ses import EmailBackend
✗ from django_amazon_ses.backends import SESBackend
BaseEmailBackend
✓ from django_amazon_ses import BaseEmailBackend
sanitize_address
✓ from django_amazon_ses import sanitize_address
Minimal setup: configure Django settings with SES backend, then call send_mail.
import os
import django
from django.conf import settings
from django.core.mail import send_mail
# Configure Django settings
settings.configure(
DEBUG=True,
DATABASES={},
EMAIL_BACKEND='django_amazon_ses.backends.SESBackend',
AWS_ACCESS_KEY_ID=os.environ.get('AWS_ACCESS_KEY_ID', 'your-access-key'),
AWS_SECRET_ACCESS_KEY=os.environ.get('AWS_SECRET_ACCESS_KEY', 'your-secret-key'),
AWS_SES_REGION_NAME=os.environ.get('AWS_SES_REGION_NAME', 'us-east-1'),
AWS_SES_REGION_ENDPOINT='email.us-east-1.amazonaws.com',
DEFAULT_FROM_EMAIL='sender@example.com',
)
django.setup()
send_mail(
'Subject here',
'Here is the message.',
'sender@example.com',
['recipient@example.com'],
fail_silently=False,
)
Upgrade
Version history
4.0.1latest on PyPI · released Apr 4, 2022
Audit
Dependencies
boto3requiredAWS SDK for Python, required for SES API calls
djangorequiredDjango framework