mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-23 21:11:05 -05:00
Mailgun: make merge_data work with stored handlebars templates
Mailgun has two different template mechanisms and two different ways of providing substitution variables to them. Update Anymail's normalized merge_data handling to work with either (while preserving existing batch send and metadata capabilities that also use Mailgun's custom data and recipient variables parameters). Completes work started by @anstosa in #156. Closes #155.
This commit is contained in:
@@ -25,6 +25,19 @@ Release history
|
||||
^^^^^^^^^^^^^^^
|
||||
.. This extra heading level keeps the ToC from becoming unmanageably long
|
||||
|
||||
vNext
|
||||
-----
|
||||
|
||||
*Not yet released*
|
||||
|
||||
Features
|
||||
~~~~~~~~
|
||||
|
||||
* **Mailgun:** Support Mailgun's new (ESP stored) handlebars templates via `template_id`.
|
||||
See `docs <https://anymail.readthedocs.io/en/latest/esps/mailgun/#batch-sending-merge-and-esp-templates>`__.
|
||||
(Thanks `@anstosa`_.)
|
||||
|
||||
|
||||
v6.1
|
||||
----
|
||||
|
||||
@@ -964,6 +977,7 @@ Features
|
||||
.. _#153: https://github.com/anymail/issues/153
|
||||
|
||||
.. _@ailionx: https://github.com/ailionx
|
||||
.. _@anstosa: https://github.com/anstosa
|
||||
.. _@calvin: https://github.com/calvin
|
||||
.. _@costela: https://github.com/costela
|
||||
.. _@decibyte: https://github.com/decibyte
|
||||
|
||||
Reference in New Issue
Block a user