[wp-trac] [WordPress Trac] #15448: wp_mail() sets Content-Type header twice for multipart emails
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 17 12:31:55 UTC 2010
#15448: wp_mail() sets Content-Type header twice for multipart emails
-------------------------+--------------------------------------------------
Reporter: rmccue | Owner: rmccue
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Changes (by rmccue):
* owner: => rmccue
* status: new => assigned
Comment:
One thought on how to achieve this was passing the body as an array
instead of a string to `wp_mail()`, with keys being the Content-Type for
each. Then, if only text/html and text/plain are set, use `AltBody` for
the text and `Body` for the HTML. If anything else is set, we'll use
PHPMailer's attachment system fully instead.
Thoughts?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15448#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list