wp_mail() From: is broken if "From: email" in headers
|Reported by:||donncha||Owned by:||rboren|
When using wp_mail() if you pass a header with the text "From: me@…" instead of "From: me <me@…>" the generated "From:" line in the email is incorrect.
It will look like "From: me@… <>" which may confuse some brain dead mail user agents.
Fixing it is easy. Change line 294 of wp-includes/pluggable.php from
$from_name = trim( $content );
$from_email = trim( $content );