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

WordPress Trac noreply at wordpress.org
Sun May 5 09:21:28 UTC 2013


#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:  3.6
Component:  General                 |     Version:  3.3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+--------------------

Comment (by MattyRob):

 Replying to [comment:9 DrewAPicture]:
 > Replying to [comment:7 MattyRob]:
 > > RFC emails standards demand that there is a space in an email address
 between the "User name" and the <local-part at domain-part> of an email
 address.
 >
 > Can you provide a reference link?

 http://tools.ietf.org/html/rfc5322#section-3.4

 I think this is the document I was referring to.

 The pertinent sections seem to build on each other so:

 name-addr = [display-name] angle-addr

 name-addr is what we are defining here with display name being the define
 human readable name and angle-addr being the email address in angled
 brackets. The definition for angle-addr is:

 [CFWS] "<" addr-spec ">" [CFWS]

 Where adds-spec is:

 local-part "@" domain

 I think I've also read somewhere that a FWS must be included between the
 display-name and angle-addr but I can't find that right now. I'll post
 again if I stumble upon it.

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


More information about the wp-trac mailing list