From dacc299e5a53f6d5793c7f340ad54300c25cb2eb Mon Sep 17 00:00:00 2001 From: medmunds Date: Sat, 11 Aug 2018 16:21:25 -0700 Subject: [PATCH] Mailgun: Document how to use European region Closes #116 --- CHANGELOG.rst | 2 ++ docs/esps/mailgun.rst | 13 +++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 09d322c..011af94 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -43,6 +43,8 @@ Breaking changes 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 and webhooks. diff --git a/docs/esps/mailgun.rst b/docs/esps/mailgun.rst index ab7f5fa..db53728 100644 --- a/docs/esps/mailgun.rst +++ b/docs/esps/mailgun.rst @@ -62,8 +62,17 @@ The base url for calling the Mailgun API. It does not include the sender domain. (Anymail :ref:`figures this out ` for you.) -The default is ``MAILGUN_API_URL = "https://api.mailgun.net/v3"`` -(It's unlikely you would need to change this.) +The default is ``MAILGUN_API_URL = "https://api.mailgun.net/v3"``, which connects +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: