Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #13471 -- Added example of send_mass_mail usage. Thanks…

… to gtaylor for the report and patch.

Backport of r13127 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e6167e54db106a5c833610774c7daa5c9cc5dbc8 1 parent 027ba07
Russell Keith-Magee authored May 08, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  docs/topics/email.txt
8  docs/topics/email.txt
@@ -84,6 +84,14 @@ Each separate element of ``datatuple`` results in a separate e-mail message.
84 84
 As in ``send_mail()``, recipients in the same ``recipient_list`` will all see
85 85
 the other addresses in the e-mail messages' "To:" field.
86 86
 
  87
+For example, the following code would send two different messages to
  88
+two different sets of recipients; however, only one connection to the
  89
+mail server would be opened::
  90
+
  91
+    message1 = ('Subject here', 'Here is the message', 'from@example.com, ['first@example.com', 'other@example.com'])
  92
+    message2 = ('Another Subject', 'Here is another message', 'from@example.com', ['second@test.com'])
  93
+    send_mass_mail((message1, message2), fail_silently=False)
  94
+
87 95
 send_mass_mail() vs. send_mail()
88 96
 --------------------------------
89 97
 

0 notes on commit e6167e5

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