Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #13471 -- Added example of send_mass_mail usage. Thanks to gtay…

…lor for the report and patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e6ff67ba248df3aed5025b593b86b8c80766011 1 parent 9338ad0
@freakboy3742 freakboy3742 authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/topics/email.txt
8 docs/topics/email.txt
@@ -91,6 +91,14 @@ As in :meth:`~django.core.mail.send_mail()`, recipients in the same
``recipient_list`` will all see the other addresses in the e-mail messages'
"To:" field.
+For example, the following code would send two different messages to
+two different sets of recipients; however, only one connection to the
+mail server would be opened::
+ message1 = ('Subject here', 'Here is the message', ', ['', ''])
+ message2 = ('Another Subject', 'Here is another message', '', [''])
+ send_mass_mail((message1, message2), fail_silently=False)
send_mass_mail() vs. send_mail()

0 comments on commit 0e6ff67

Please sign in to comment.
Something went wrong with that request. Please try again.