Skip to content

Commit

Permalink
[3.2.x] Fixed #32471 -- Doc'd the return value of EmailMessage.send().
Browse files Browse the repository at this point in the history
Backport of b1af2cc from master
  • Loading branch information
hramezani authored and felixxm committed Feb 23, 2021
1 parent cf05f9f commit 5431718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/topics/email.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ The class has the following methods:
Otherwise, an instance of the default backend will be instantiated and
used. If the keyword argument ``fail_silently`` is ``True``, exceptions
raised while sending the message will be quashed. An empty list of
recipients will not raise an exception.
recipients will not raise an exception. It will return ``1`` if the message
was sent successfully, otherwise ``0``.

* ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a
subclass of Python's :class:`~email.mime.text.MIMEText` class) or a
Expand Down

0 comments on commit 5431718

Please sign in to comment.