Ticket #13471: send_mass_mail_elab.diff
File send_mass_mail_elab.diff, 774 bytes (added by , 15 years ago) |
---|
-
docs/topics/email.txt
101 101 a single connection for all of its messages. This makes 102 102 :meth:`~django.core.mail.send_mass_mail()` slightly more efficient. 103 103 104 For example, this would send two different messages to two different sets 105 of recipients, using one connection to the mail server (instead of two): 106 107 message1 = ('Subject here', 'Here is the message', 'from@example.com, ['to@example.com']) 108 message2 = ('Another Subject', 'Here is another message', 'from@example.com', ['to@test.com']) 109 send_mass_mail((message1, message2), fail_silently=False) 110 104 111 mail_admins() 105 112 ============= 106 113