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

WordPress Trac noreply at wordpress.org
Wed Mar 12 00:18:36 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):

 I think I'm right about that last comment. This isn't a bug in PHPMailer.
 PHPMailer defines a function specifically for this purpose rather than
 adding it as a custom header, see `$phpmailer->addReplyTo()`. Addresses
 added in that manner are encoded correctly. So if I use this instead:

 {{{
 $phpmailer->addReplyTo('foo at example.org', 'Lukáš LastName');
 }}}

 Here's how the header is encoded:

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

 This would seem to indicate then that setting a Reply-To custom header is
 not the appropriate (or properly supported) method of setting a Reply-To
 address.

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


More information about the wp-trac mailing list