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

WordPress Trac noreply at wordpress.org
Wed Jul 13 18:03:54 UTC 2016


#21659: wp_mail() problem with Reply-To header
--------------------------------------+---------------------------
 Reporter:  pavelevap                 |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6
Component:  Mail                      |     Version:  3.4.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38058"]:
 {{{
 #!CommitTicketReference repository="" revision="38058"
 Mail: Improve handling of UTF-8 address headers.

 Previously, `wp_mail()` implemented Reply-To as a generic header, using
 PHPMailer's `addCustomHeader()`. As such, the email address portion of
 the header was being incorrectly encoded when the name portion
 contained UTF-8 characters. Switching to PHPMailer's more specific
 `addReplyTo()` method fixes the issue.

 For greater readability, the handling of all address-related headers
 (To, CC, BCC, Reply-To) has been standardized.

 Props szepe.viktor, iandunn, bpetty, stephenharris.
 Fixes #21659.
 }}}

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


More information about the wp-trac mailing list