[wp-trac] [WordPress Trac] #15448: wp_mail() sets Content-Type header twice for multipart emails

WordPress Trac noreply at wordpress.org
Mon Feb 27 12:34:08 UTC 2017


#15448: wp_mail() sets Content-Type header twice for multipart emails
---------------------------------------+------------------------
 Reporter:  rmccue                     |       Owner:  nacin
     Type:  enhancement                |      Status:  reviewing
 Priority:  normal                     |   Milestone:  4.8
Component:  Mail                       |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  gci has-patch westi-likes  |     Focuses:
---------------------------------------+------------------------

Comment (by dd32):

 > Any chance of getting this in the 4.7.x branch at some point?

 A bugfix to remove the duplicate headers - likely, although, I have a
 feeling that it should be fixed in PHPMailer instead of in WordPress
 (Based on the code I've read in PHPMailer, it looks like it's detecting
 the email type wrong - and it is, which is why the duplicate header is
 added).

 Accepting `text/html` + `text/plain` as args in `wp_mail()` will probably
 be a 4.8 thing, just based on needing to have a much longer testing and
 bug-finding period being needed.

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


More information about the wp-trac mailing list