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

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 10 23:46:14 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:  needs-patch, wp_mail, smtp, mail
-------------------------+--------------------------------------------------
Changes (by nacin):

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


Comment:

 +1 with caveats.

 Exploding by commas would cause issues with {{{"Doe, John"
 <johndoe at example.com>}}} becoming {{{"Doe}}} and {{{John"
 <johndoe at example.com>}}}.

 Patch attached to handle an array only. I would think it should also
 explode by commas outside of quotation marks, but this is a start.

 I'm looking at how the function handles CC and BCC headers and I see they
 currently explode by commas without regard for quotation marks. That may
 be enough to classify this as a bug. The function also doesn't appear to
 support {{{CC: johndoe at example.com\nCC:janedoe at example.com}}} as headers,
 which does work for PHP's {{{mail}}}.

 I'll try to generate some test cases and build a patch to fix this.

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


More information about the wp-trac mailing list