Skip to content

Commit 41754d9

Browse files
committed
Amazon SES: use SES v2 API by default
- Rename `anymail.backends.amazon_sesv2.EmailBackend` to `amazon_ses`, making SES v2 the default. - Rename the old `amazon_ses` backend to `amazon_sesv1`, keeping it available. Add a deprecation warning. - Alias `amazon_sesv2` to `amazon_ses`, with a deprecation warning (for projects that opted into v2 early under Anymail 9.1 or 9.2). - Similar renaming on the test files. - Update docs to assume v2 in most places (other than migration-specific sections)
1 parent 2335b9c commit 41754d9

File tree

9 files changed

+1021
-991
lines changed

9 files changed

+1021
-991
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ vNext
3333
Breaking changes
3434
~~~~~~~~~~~~~~~~
3535

36+
* **Amazon SES:** The Amazon SES backend now sends using the SES v2 API.
37+
Most projects should not require code changes, but you may need to update
38+
your IAM permissions. See
39+
`Migrating to the SES v2 API <https://anymail.dev/en/latest/esps/amazon_ses/#amazon-ses-v2>`__.
40+
41+
If you were using SES v2 under Anymail 9.1 or 9.2, change your
42+
``EMAIL_BACKEND`` setting from ``amazon_sesv2`` to just ``amazon_ses``.
43+
44+
(If you are not ready to migrate to SES v2, an ``amazon_sesv1`` EmailBackend
45+
is available. But Anymail will drop support for that later this year. See
46+
`Using SES v1 (deprecated) <https://anymail.dev/en/latest/esps/amazon_ses/#amazon-ses-v1>`__.)
47+
3648
* **Amazon SES:** The "extra name" for installation must now be spelled with
3749
a hyphen rather than an underscore: ``django-anymail[amazon-ses]``.
3850
Be sure to update any dependencies specification (pip install, requirements.txt,

anymail/backends/amazon_ses.py

Lines changed: 151 additions & 90 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)