mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-26 14:26:56 -05:00
Add merge_metadata for other ESPs
Support merge_metadata in Mailgun, Mailjet, Mandrill, Postmark, SparkPost, and Test backends. (SendGrid covered in earlier PR.) Also: * Add `merge_metadata` to AnymailMessage, AnymailMessageMixin * Add `is_batch()` logic to BasePayload, for consistent handling * Docs Note: Mailjet implementation switches *all* batch sending from their "Recipients" field to to the "Messages" array bulk sending option. This allows an independent payload for each batch recipient. In addition to supporting merge_metadata, this also removes the prior limitation on mixing Cc/Bcc with merge_data. Closes #141.
This commit is contained in:
@@ -39,6 +39,17 @@ Breaking changes
|
||||
code is doing something like `message.anymail_status.recipients[email.lower()]`,
|
||||
you should remove the `.lower()`
|
||||
|
||||
Features
|
||||
~~~~~~~~
|
||||
|
||||
* Add new `merge_metadata` option for providing per-recipient metadata in batch
|
||||
sends. Available for all supported ESPs *except* Amazon SES and SendinBlue.
|
||||
See `docs <https://anymail.readthedocs.io/en/latest/sending/anymail_additions/#anymail.message.AnymailMessage.merge_metadata>`_.
|
||||
(Thanks `@janneThoft`_ for the idea and SendGrid implementation.)
|
||||
|
||||
* **Mailjet:** Remove limitation on using `cc` or `bcc` together with `merge_data`.
|
||||
|
||||
|
||||
Fixes
|
||||
~~~~~
|
||||
|
||||
@@ -908,6 +919,7 @@ Features
|
||||
.. _@calvin: https://github.com/calvin
|
||||
.. _@costela: https://github.com/costela
|
||||
.. _@decibyte: https://github.com/decibyte
|
||||
.. _@janneThoft: https://github.com/janneThoft
|
||||
.. _@joshkersey: https://github.com/joshkersey
|
||||
.. _@Lekensteyn: https://github.com/Lekensteyn
|
||||
.. _@lewistaylor: https://github.com/lewistaylor
|
||||
|
||||
Reference in New Issue
Block a user