[wp-trac] [WordPress Trac] #9086: wp_mail() From: is broken if
"From: email" in headers
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 10 20:44:08 GMT 2009
#9086: wp_mail() From: is broken if "From: email" in headers
--------------------------+-------------------------------------------------
Reporter: donncha | Owner: rboren
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: General | Version: 2.7
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
When using wp_mail() if you pass a header with the text "From:
me at example.com" instead of "From: me <me at example.com>" the generated
"From:" line in the email is incorrect.
It will look like "From: me at example.com <>" 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 );`
to
`$from_email = trim( $content );`
--
Ticket URL: <http://trac.wordpress.org/ticket/9086>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list