wp_mail() does not accommodate address format "Name <email@example.com>"
|Reported by:||dllh||Owned by:||westi|
The wp_mail() function does not accommodate addresses in the form "Name <address@…>". The phpmailer class chokes on this format, as the whole string is passed to its $address parameter rather than the constituent parts being passed as $address and $name. This does not likely affect a great many mailer functions in core, but it does stand to affect plugins (and does affect some wpcom plugins). The attached patch resolves the issue.
If I can provide any further information to increase the likelihood of landing this pretty quickly so that it can land on wpcom, please speak up.
Change History (15)
- Milestone changed from Awaiting Review to 3.2
- Version changed from 3.1 to 3.2