[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:05:26 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):

 I agree. Perhaps more elegant would be to simply have a
 `wp_mail_headers_$type` filter. Then, the `$message` parameter we accept
 could be:

 {{{
 $message = array(
         'text/plain' => 'xyz',
         'text/html' => '<b>xyz</b>'
 );
 }}}

 I much prefer this, but it does involve adding an extra filter if people
 need custom headers.

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


More information about the wp-trac mailing list