Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#50374 new defect (bug)

Improve PHPMailer usage

Reported by: ayeshrajans's profile ayeshrajans Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Mail Keywords:
Focuses: Cc:

Description

Related to the ticket #41750

We finally have PHPMailer 6 in WordPress core. The PHPMailer author noticed that there are some improvements in the way we use PHPMailer.

if you're setting content-type headers and boundaries via addCustomHeader, you're using PHPMailer wrong! (https://core.trac.wordpress.org/ticket/41750#comment:41)

I would like to request comments and thoughts on taking a good look at how we use PHPMailer. I suspect these outdated patterns were used when WordPress had PHPMailer 5.x series. Now that we use PHPMailer 6, we can review and improve how we use it.

PHPMailer 6 upgrade milestone is WordPress 5.5. It would be great if we ship these changes with same version.

Change History (1)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Mail
Note: See TracTickets for help on using tickets.