mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Mailgun: Add MAILGUN_SENDER_DOMAIN setting
Allow custom MAILGUN_SENDER_DOMAIN in Anymail settings. (Replaces need to use global esp_extra.) Improve docs to cover cases where this is needed. (esp_extra sender_domain is still supported for overriding individual messages.) Fixes #26.
This commit is contained in:
@@ -100,7 +100,9 @@ or SparkPost or any other supported ESP where you see "mailgun":
|
||||
)
|
||||
|
||||
ANYMAIL = {
|
||||
# (exact settings here depend on your ESP...)
|
||||
"MAILGUN_API_KEY": "<your Mailgun key>",
|
||||
"MAILGUN_SENDER_DOMAIN": 'mg.example.com', # your Mailgun domain, if needed
|
||||
}
|
||||
EMAIL_BACKEND = "anymail.backends.mailgun.MailgunBackend" # or sendgrid.SendGridBackend, or...
|
||||
DEFAULT_FROM_EMAIL = "you@example.com" # if you don't already have this in settings
|
||||
|
||||
Reference in New Issue
Block a user