[wp-trac] [WordPress Trac] #21659: wp_mail() problem with Reply-To header

WordPress Trac noreply at wordpress.org
Tue Mar 11 22:12:58 UTC 2014


#21659: wp_mail() problem with Reply-To header
--------------------------+------------------------------
 Reporter:  pavelevap     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by iandunn):

 Replying to [comment:4 kitchin]:
 > Reply-to should not have a Name at all, just a list of simple email
 addresses, according to this person: http://wordpress.org/support/topic
 /contact-form-possible-bug

 I don't think that's what they were saying. The issue in that thread was
 that the address format was `"foo at example.org <foo at example.org>"`, where
 the e-mail address itself is set in the first part rather than a name.

 If I'm reading the [http://www.ietf.org/rfc/rfc2822.txt RFC 2822]
 correctly, the `Reply-To` header can accept an `address-list` just like a
 `To` or `From` header, so an entry like `"Jane Doe <jane at example.org>"` is
 perfectly acceptable.

 [[br]]
 I was able to reproduce this with:

 `wp_mail( 'me at example.org', '#21659-core test', 'reproducing', array(
 'Reply-To: Lukáš LastName <foo at example.org>' ) );`

 ...which results in:

 {{{
 Reply-To: =?UTF-8?Q?Luk=C3=A1=C5=A1_LastName_ <me at example.org>,
         ?=@macenzie.local
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21659#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list