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

WordPress Trac noreply at wordpress.org
Wed Mar 12 14:37:29 UTC 2014


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

Comment (by iandunn):

 I looked further into [http://wordpress.org/support/topic/contact-form-
 possible-bug the problem that kitchin mentioned in comment 4], and
 initially thought it was a PHPMailer bug, but
 [https://github.com/PHPMailer/PHPMailer/issues/193 it turned out to be]
 the same issue as this ticket -- that we're using `AddCustomHeader()`
 instead of `AddReplyTo()`.

 That also appears to be the cause of [http://wordpress.org/support/topic
 /administrator-emails-not-being-received-2 a similar problem kitchen
 reported on the support forums].

 The address methods like `AddAddress()` and `AddReplyTo()` do some
 filtering on the addresses to make sure that they're compliant with the
 RFCs, but `AddCustomHeader()` doesn't because it rightfully assumes that
 the appropriate methods will be called when dealing with headers
 containing addresses.

 So, there are potentially other problems being caused by using
 `AddCustomHeader()` instead of `AddReplyTo()`. Any fatal errors that would
 be corrected by the filtering in `AddReplyTo()` are currently failing.

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


More information about the wp-trac mailing list