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:
@@ -17,10 +17,9 @@ To use Anymail's Mailgun backend, set:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
EMAIL_BACKEND = "anymail.backends.mailgun.MailgunBackend"
|
||||
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
|
||||
|
||||
in your settings.py. (Watch your capitalization: Mailgun spells their name with a
|
||||
lowercase "g", so Anymail does too.)
|
||||
in your settings.py.
|
||||
|
||||
|
||||
.. setting:: ANYMAIL_MAILGUN_API_KEY
|
||||
|
||||
@@ -33,7 +33,7 @@ To use Anymail's Mandrill backend, set:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
EMAIL_BACKEND = "anymail.backends.mandrill.MandrillBackend"
|
||||
EMAIL_BACKEND = "anymail.backends.mandrill.EmailBackend"
|
||||
|
||||
in your settings.py.
|
||||
|
||||
|
||||
@@ -19,10 +19,9 @@ To use Anymail's Postmark backend, set:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
EMAIL_BACKEND = "anymail.backends.postmark.PostmarkBackend"
|
||||
EMAIL_BACKEND = "anymail.backends.postmark.EmailBackend"
|
||||
|
||||
in your settings.py. (Watch your capitalization: Postmark spells their name with a
|
||||
lowercase "m", so Anymail does too.)
|
||||
in your settings.py.
|
||||
|
||||
|
||||
.. setting:: ANYMAIL_POSTMARK_SERVER_TOKEN
|
||||
|
||||
@@ -34,10 +34,9 @@ To use Anymail's SendGrid backend, set:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
EMAIL_BACKEND = "anymail.backends.sendgrid.SendGridBackend"
|
||||
EMAIL_BACKEND = "anymail.backends.sendgrid.EmailBackend"
|
||||
|
||||
in your settings.py. (Watch your capitalization: SendGrid spells
|
||||
their name with an uppercase "G", so Anymail does too.)
|
||||
in your settings.py.
|
||||
|
||||
|
||||
.. setting:: ANYMAIL_SENDGRID_API_KEY
|
||||
|
||||
@@ -33,10 +33,9 @@ To use Anymail's SparkPost backend, set:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
EMAIL_BACKEND = "anymail.backends.sparkpost.SparkPostBackend"
|
||||
EMAIL_BACKEND = "anymail.backends.sparkpost.EmailBackend"
|
||||
|
||||
in your settings.py. (Watch your capitalization: SparkPost spells
|
||||
their name with an inner capital "P", so Anymail does too.)
|
||||
in your settings.py.
|
||||
|
||||
|
||||
.. setting:: ANYMAIL_SPARKPOST_API_KEY
|
||||
|
||||
Reference in New Issue
Block a user