#37737 closed defect (bug) (duplicate)
Wordpress & Phpmailer : data not all cleared
| Reported by: | danygold | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 4.5.3 | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
Description
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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #33972.