[wp-trac] [WordPress Trac] #38102: Email header Content-Type: multipart boundary ignored by wp_mail

WordPress Trac noreply at wordpress.org
Wed Jul 9 23:30:05 UTC 2025


#38102: Email header Content-Type: multipart boundary ignored by wp_mail
--------------------------+------------------------------
 Reporter:  drtonyb       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:  4.6
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SirLouen):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 It's not being ignored by `wp_mail` but by PHPMailer. When setting custom
 headers, the `boundary` is removed as it fallback as a regular `plain`
 email.

 Already reported upstream, and this has become essentially a duplicate of
 #15448

 When we sort out the multipart problem, this will be sorted also. I hope
 we can achieve this before 6.9 release. Stay tuned to the other report.

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


More information about the wp-trac mailing list