[wp-trac] [WordPress Trac] #10420: wp_mail fails to send to multiple recipients
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 13 16:14:27 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
-------------------------+--------------------------------------------------
Comment(by nacin):
New, probably last, patch:
- Handles multiple To: recipients via array or comma-separated string.
Also checks if {{{$to}}} is empty first, as it could be a message with
only CC and BCC recipients.
- Per RFC 2822: Headers should be separated with {{{\r\n}}}, not
{{{\n}}}. {{{wp_mail}}} now supports both so headers that work on
{{{mail}}} work here. {{{CC: john at example.com\r\nCC:doe at example.com}}} now
works as well.
- Some whitespace and conventions cleanup.
Display name handling is a bit of an edge case, so I haven't bothered with
that here, but I'd like to see multiple recipient handling make it into
core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10420#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list