[wp-trac] [WordPress Trac] #63127: wp_mail resets custom headers when headers array is set to empty, causing loss of custom header data (e.g., boundary)
WordPress Trac
noreply at wordpress.org
Mon Aug 4 06:49:59 UTC 2025
#63127: wp_mail resets custom headers when headers array is set to empty, causing
loss of custom header data (e.g., boundary)
--------------------------+------------------------------
Reporter: regnalf | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 6.7.2
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by regnalf):
Thanks @SirLouen
But I wrote my own mail function that uses the PHPMailer class directly.
This allows me to create the boundary and include images with cid id
without any problems.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63127#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list