summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2026-04-07 13:05:40 -0700
committernessita <124304+nessita@users.noreply.github.com>2026-04-15 09:26:53 -0300
commit86cea4145dcd870231ea81f3cfe78fcbe02dbae4 (patch)
tree5ab4b55914536c86adb53ba5ad1f9e1f6ed3ae3f
parent8f36420364265ea1635b6038770077c08cb9ee97 (diff)
Refs #35514 -- Corrected email backends' outline levels in email docs.
Moved documentation section for each email backend to be a direct child of "Email backends" (rather than subsections of "Obtaining an instance of an email backend"). Added a section header for "Third-party backends" to surface it in the outline and separate it from "Dummy backend."
-rw-r--r--docs/topics/email.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index bc558095d5..09d4b68b1a 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -719,7 +719,7 @@ can :ref:`write your own email backend <topic-custom-email-backend>`.
.. _topic-email-smtp-backend:
SMTP backend
-~~~~~~~~~~~~
+------------
.. class:: backends.smtp.EmailBackend(host=None, port=None, username=None, password=None, use_tls=None, fail_silently=False, use_ssl=None, timeout=None, ssl_keyfile=None, ssl_certfile=None, **kwargs)
@@ -749,7 +749,7 @@ SMTP backend
.. _topic-email-console-backend:
Console backend
-~~~~~~~~~~~~~~~
+---------------
Instead of sending out real emails the console backend just writes the
emails that would be sent to the standard output. By default, the console
@@ -766,7 +766,7 @@ convenience that can be used during development.
.. _topic-email-file-backend:
File backend
-~~~~~~~~~~~~
+------------
The file backend writes emails to a file. A new file is created for each new
session that is opened on this backend. The directory to which the files are
@@ -784,7 +784,7 @@ convenience that can be used during development.
.. _topic-email-memory-backend:
In-memory backend
-~~~~~~~~~~~~~~~~~
+-----------------
The ``'locmem'`` backend stores messages in a special attribute of the
``django.core.mail`` module. The ``outbox`` attribute is created when the first
@@ -804,7 +804,7 @@ Django's test runner :ref:`automatically uses this backend for testing
.. _topic-email-dummy-backend:
Dummy backend
-~~~~~~~~~~~~~
+-------------
As the name suggests the dummy backend does nothing with your messages. To
specify this backend, put the following in your settings::
@@ -814,6 +814,9 @@ specify this backend, put the following in your settings::
This backend is not intended for use in production -- it is provided as a
convenience that can be used during development.
+Third-party backends
+--------------------
+
.. admonition:: There are community-maintained solutions too!
Django has a vibrant ecosystem. There are email backends