﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
10420,wp_mail fails to send to multiple recipients,patmcnally,nacin,"The function wp_mail as defined in wp-includes/pluggable.php does not correctly handle multiple recipients when they are passed in as a comma separated string to the first parameter($to). This is evident when using any SMTP server that strictly adheres to section 4.1.1.3 of rfc2821 (such as gmail).

For example when the first parameter to wp_mail is ""foo@example.com, bar@example.com"" this string is passed directly to the SMTP server in the first and only RCPT command. Expected behavior is two separate RCPT commands, one for each email address.

phpmailer supports the required functionality, however $phpmailer->AddAddress needs to be called multiple times for each email address contained in the first parameter ($to). Instead AddAddress is called only once, borking any attempts to send to multiple recipients when using gmail's SMTP server.

I would submit a patch, however this is my first time investigating both php and Wordpress and fear that I could only do more harm than good.
",enhancement,closed,normal,3.0,Mail,2.9,normal,fixed,has-patch tested,
