SparkPost: drop support for multiple from_email (#213)

SparkPost's API no longer allows this, and now returns
a confusing error message about return_path.

(Not treating as a breaking change in Anymail, because
the breaking change was in the SparkPost API. This just
improves the error message in the unlikely event anyone
is trying to use this feature.)

Closes #212
This commit is contained in:
Mike Edmunds
2020-11-28 18:02:59 -08:00
committed by GitHub
parent a7ea862ff1
commit 8c1749c6f3
5 changed files with 30 additions and 22 deletions

View File

@@ -213,6 +213,18 @@ Limitations and quirks
use only the domain portion and substitute its own encoded mailbox before
the @.
**Multiple from_email addresses**
Prior to November, 2020, SparkPost supporting sending messages with multiple
*From* addresses. (This is technically allowed by email specs, but many
ISPs bounce such messages.) Anymail v8.1 and earlier will pass multiple
``from_email`` addresses to SparkPost's API.
SparkPost has since dropped support for more than one from address, and now issues
error code 7001 "No sending domain specified". To avoid confusion, Anymail v8.2
treats multiple from addresses as an unsupported feature in the SparkPost backend.
.. versionchanged:: 8.2
.. _sparkpost-templates: