mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Note Django DEFAULT_FROM_EMAIL in docs.
Ref https://github.com/brack3t/Djrill/issues/69#issuecomment-74062569
This commit is contained in:
@@ -24,7 +24,7 @@ In general, Djrill "just works" with Django's built-in `django.core.mail`
|
|||||||
package. It includes:
|
package. It includes:
|
||||||
|
|
||||||
* Support for HTML, attachments, extra headers, and other features of
|
* Support for HTML, attachments, extra headers, and other features of
|
||||||
`Django's built-in email <https://docs.djangoproject.com/en/dev/topics/email/>`_
|
`Django's built-in email <https://docs.djangoproject.com/en/stable/topics/email/>`_
|
||||||
* Mandrill-specific extensions like tags, metadata, tracking, and MailChimp templates
|
* Mandrill-specific extensions like tags, metadata, tracking, and MailChimp templates
|
||||||
* Optional support for Mandrill inbound email and other webhook notifications,
|
* Optional support for Mandrill inbound email and other webhook notifications,
|
||||||
via Django signals
|
via Django signals
|
||||||
@@ -73,9 +73,10 @@ Djrill 1-2-3
|
|||||||
|
|
||||||
MANDRILL_API_KEY = "<your Mandrill key>"
|
MANDRILL_API_KEY = "<your Mandrill key>"
|
||||||
EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
|
EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
|
||||||
|
DEFAULT_FROM_EMAIL = "you@example.com" # if you don't already have this in settings
|
||||||
|
|
||||||
|
|
||||||
3. Now the regular `Django email functions <https://docs.djangoproject.com/en/dev/topics/email/>`_
|
3. Now the regular `Django email functions <https://docs.djangoproject.com/en/stable/topics/email/>`_
|
||||||
will send through Mandrill:
|
will send through Mandrill:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ In your project's :file:`settings.py`:
|
|||||||
EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
|
EMAIL_BACKEND = "djrill.mail.backends.djrill.DjrillBackend"
|
||||||
|
|
||||||
|
|
||||||
|
Also, if you don't already have a :setting:`DEFAULT_FROM_EMAIL` in settings,
|
||||||
|
this is a good time to add one. (Django's default is "webmaster@localhost",
|
||||||
|
which won't work with Mandrill.)
|
||||||
|
|
||||||
|
|
||||||
Mandrill Webhooks (Optional)
|
Mandrill Webhooks (Optional)
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user