Mailgun: Document how to use European region

Closes #116
This commit is contained in:
medmunds
2018-08-11 16:21:25 -07:00
parent 215c6a0a14
commit dacc299e5a
2 changed files with 13 additions and 2 deletions

View File

@@ -43,6 +43,8 @@ Breaking changes
Features Features
~~~~~~~~ ~~~~~~~~
* **Mailgun:** Document how to use new European region. (This works in earlier
Anymail versions, too.)
* **Postmark:** Add support for Anymail's normalized `metadata` in sending * **Postmark:** Add support for Anymail's normalized `metadata` in sending
and webhooks. and webhooks.

View File

@@ -62,8 +62,17 @@ The base url for calling the Mailgun API. It does not include
the sender domain. (Anymail :ref:`figures this out <mailgun-sender-domain>` the sender domain. (Anymail :ref:`figures this out <mailgun-sender-domain>`
for you.) for you.)
The default is ``MAILGUN_API_URL = "https://api.mailgun.net/v3"`` The default is ``MAILGUN_API_URL = "https://api.mailgun.net/v3"``, which connects
(It's unlikely you would need to change this.) to Mailgun's US service. You must override this if you are using Mailgun's European
region:
.. code-block:: python
ANYMAIL = {
"MAILGUN_API_KEY": "...",
"MAILGUN_API_URL": "https://api.eu.mailgun.net/v3",
# ...
}
.. _mailgun-sender-domain: .. _mailgun-sender-domain: