[wp-trac] [WordPress Trac] #37737: Wordpress & Phpmailer : data not all cleared
WordPress Trac
noreply at wordpress.org
Fri Aug 19 13:07:34 UTC 2016
#37737: Wordpress & Phpmailer : data not all cleared
----------------------------+-----------------------------
Reporter: danygold | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 4.5.3
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
When sending several emails successive, not all data are cleared from
phpmailer.
In my case, I'm sending two emails :
- One first email validation in HTML (with text and Html as altbody)
- One second email with some raw data, and custom content-type.
The second email keep the variable "AltBody" from the first email, so
wp_mail consider it as a multi part email. And as so, wp_mail() change the
content-type from my custom kind to "multipart".
It comes from the re-use of global $phpmailer, instead of create a new
phpmailer.
Phpmailer class needs a better clear of all previous variables.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37737>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list