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

WordPress Trac noreply at wordpress.org
Wed Mar 12 01:05:32 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:  close has-patch  |     Focuses:
-----------------------------+------------------------------
Changes (by iandunn):

 * keywords:  close => close has-patch


Comment:

 It seems like a bug to me, since Core is using `AddCustomHeader()` instead
 the appropriate method, and that causes an undesirable result. I think
 plugin authors have a reasonable expectation that they can add a `Reply-
 To` header without any extra fuss.

 I don't see any drawback to making `wp_mail()` use `AddReplyTo()`, and if
 we do that then it would "just work" for everybody. If we don't, then any
 plugin dev who wants to set a `Reply-To` will potentially get bit by this;
 and if they do, then they'll have to spend a lot of time figuring out what
 happened and how to work around it.

 I attached a first attempt at a patch in case others think it'd be a
 positive change.

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


More information about the wp-trac mailing list