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

WordPress Trac noreply at wordpress.org
Tue Mar 11 23:12:35 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 bpetty):

 Replying to [comment:5 iandunn]:
 > {{{
 > Reply-To: =?UTF-8?Q?Luk=C3=A1=C5=A1_LastName_ <me at example.org>,
 >       ?=@macenzie.local
 > }}}

 I'm not sure where the "@macenzie.local" part is coming from. Obviously
 it's your actual test installation, but what I mean is that I'm not sure
 how it's being added to the Reply-To header, directly after the encoded-
 word part of the header.

 Are you testing with latest trunk? PHPMailer was updated recently to 5.2.7
 (see #25560). When I test with latest trunk with this update, here are the
 verbatim headers that are generated:

 {{{
 Date: Tue, 11 Mar 2014 23:02:15 +0000
 Return-Path: <wordpress at wordpress.local>
 From: WordPress <wordpress at wordpress.local>
 Message-ID: <fa3d3980eb4c3f1f691dbb073688b95a at wordpress.local>
 X-Priority: 3
 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
 Reply-To: =?UTF-8?Q?Luk=C3=A1=C5=A1_LastName_<foo at example.org>?=
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
 }}}

 That's generated when I also called `wp_mail` as described above:

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

 Everything looks correct with my headers. Those are passed directly to
 `mail()` from there.

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


More information about the wp-trac mailing list