#13471: send_mass_mail() elaboration
---------------------------+------------------------------------------------
 Reporter:  gtaylor        |       Owner:  nobody    
   Status:  new            |   Milestone:  1.2       
Component:  Documentation  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  1              |  
---------------------------+------------------------------------------------
 I've attached a patch that elaborates on the usage of the datatuple
 argument to send_mass_mail(). I confused myself with my first attempt at
 using this function by doing something like:

 {{{
 ('test', 'testmsg', 'nore...@coursebookapp.com',
 ('snagglepa...@gmail.com', 'gtay...@l11solutions.com'))
 }}}

 I thought that the documentation was saying that connections were made to
 the server for each and every recipient in send_mail(), which is not the
 case. So I took my arguments from send_mail() and constructed a datatuple
 for send_mass_mail(), since that re-used the same connection. As silly as
 I later found it was to do this, I think it's worth pointing out the usage
 of datatuple explicitly so that people can draw this conclusion for
 themselves.

 The patch suggests that send_mass_mail() can be used to send multiple,
 completely arbitrary emails to one or more completely different set of
 recipients. I also show that you need a tuple of tuples, rather than a
 single datatuple.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13471>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to