[wp-trac] [WordPress Trac] #10420: wp_mail fails to send to multiple recipients

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 13 15:11:45 UTC 2009


#10420: wp_mail fails to send to multiple recipients
-------------------------+--------------------------------------------------
 Reporter:  patmcnally   |       Owner:                                               
     Type:  enhancement  |      Status:  new                                          
 Priority:  normal       |   Milestone:  2.9                                          
Component:  Mail         |     Version:  2.9                                          
 Severity:  normal       |    Keywords:  has-patch, needs-testing, wp_mail, smtp, mail
-------------------------+--------------------------------------------------
Changes (by nacin):

  * keywords:  needs-patch, wp_mail, smtp, mail => has-patch, needs-
               testing, wp_mail, smtp, mail


Comment:

 Replying to [comment:5 nacin]:
 > Exploding by commas would cause issues with {{{"Doe, John"
 <johndoe at example.com>}}} becoming {{{"Doe}}} and {{{John"
 <johndoe at example.com>}}}.

 So, {{{wp_mail}}} isn't configured to handle display names of To, CC, or
 BCC recipients, so you can explode by commas. I've been working on a patch
 to allow display names. There are a few other quirks I'm noticing as well
 I'm going to try to patch up. In the meantime:

 Attached is a patch along the lines of [comment:4 pkthree]'s suggestion to
 allow a comma-separated list or an array for the {{{$to}}} parameter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10420#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list