mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Rename EmailBackends for Django consistency
* **Future breaking change:** Rename all Anymail backends to just `EmailBackend`, matching Django's naming convention. (E.g., switch to "anymail.backends.mailgun.EmailBackend" rather than "anymail.backends.mailgun.MailgunBackend".) The old names still work, but will issue a DeprecationWarning and will be removed in some future release. (Apologies for this change; the old naming convention was a holdover from Djrill, and I wanted consistency with other Django EmailBackends before hitting 1.0.) Fixes #49.
This commit is contained in:
@@ -101,7 +101,7 @@ or SparkPost or any other supported ESP where you see "mailgun":
|
||||
"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...
|
||||
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend" # or sendgrid.EmailBackend, or...
|
||||
DEFAULT_FROM_EMAIL = "you@example.com" # if you don't already have this in settings
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user