[wp-trac] [WordPress Trac] #19847: wp_mail $from_name field is removing an extra character from the name

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 15 00:45:11 UTC 2012


#19847: wp_mail $from_name field is removing an extra character from the name
---------------------------------+-----------------------------
 Reporter:  hakanca              |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  General              |     Version:  3.3.1
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.6-early  |
---------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch 3.6-early
 * milestone:  Awaiting Review => Future Release


Comment:

 To reproduce, leave out the space between the name and the e-mail address:
 {{{
 $headers = 'From: My Name<myname at mydomain.com>' . "\r\n";
 wp_mail( 'test at test.com', 'subject', 'message', $headers );
 }}}
 The resulting name will be cut:
 {{{
 From: My Nam <myname at mydomain.com>
 }}}
 Considerations in comment:2 are valid.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19847#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list