From 543171873f0565b93b3ad603fe72f92468d012a4 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Mon, 22 Feb 2021 16:44:03 +0100 Subject: [PATCH] [3.2.x] Fixed #32471 -- Doc'd the return value of EmailMessage.send(). Backport of b1af2cca3aba4cefc69c986d4de6cab6db524bf3 from master --- docs/topics/email.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/topics/email.txt b/docs/topics/email.txt index 6ea80e44ca6..173b1f892f5 100644 --- a/docs/topics/email.txt +++ b/docs/topics/email.txt @@ -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