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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 22 12:01:20 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:                 
-------------------------+--------------------------------------------------

Comment(by rmccue):

 If the body is a string, we'll use the current parsing (i.e. get Content-
 Type from the $headers parameter), otherwise, we'll ignore the Content-
 Type header from there and use the key for each item.

 My only concern is adding custom headers to each type. We could accept
 something like this, I guess:
 {{{
 $body = array(
         'text/plain' => array(
                 'headers' => array(
                         'X-Type' => 'text'
                 ),
                 'body' => 'xyz'
         )
 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15448#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list