Ticket #13471: send_mass_mail_elab.diff

File send_mass_mail_elab.diff, 774 bytes (added by Greg Taylor, 14 years ago)

Patch for the suggested documentation change.

  • docs/topics/email.txt

     
    101101a single connection for all of its messages. This makes
    102102:meth:`~django.core.mail.send_mass_mail()` slightly more efficient.
    103103
     104For example, this would send two different messages to two different sets
     105of 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
    104111mail_admins()
    105112=============
    106113
Back to Top