Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#60722 new defect (bug)

incorrect display of mail due to outdated version of PHP mailer

Reported by: studiodv's profile studiodv Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4.3
Component: Mail Keywords: reporter-feedback
Focuses: Cc:

Description (last modified by sabernhardt)

Good morning,

I am experiencing problems when displaying order confirmation emails and contact forms from multiple WordPress websites.

This code is displayed first in the emails:
Content-Type: text/html; charset=UTF-8

I've already been looking into what could be causing it. There it was indicated that it was due to the PHP Mailer version of WordPress. Could it be that the PHP Mailer update is not current with the new version (6.4.3) of WordPress?

Yours sincerely,
Diana

Change History (4)

#1 @sabernhardt
9 months ago

  • Component changed from General to Mail
  • Description modified (diff)
  • Keywords reporter-feedback added

Hi and welcome to WordPress Core Trac!

There it was indicated

Could you share a link to the explanation that this issue is related to PHPMailer?

If PHPMailer 6.8.1 is the cause, it could be resolved soon. WordPress 6.5, expected to be available later this month, will have the latest PHPMailer 6.9.1 (#59966).

I have seen a different issue with Content-Type headers in an old version of an SMTP plugin. If you have an SMTP-related plugin, I think that is another possible cause.

#2 follow-up: @studiodv
9 months ago

Good afternoon,

Thanks for your comment.

I came across the message regarding php mailer here: https://github.com/PHPMailer/PHPMailer/discussions/2780

I use 1 plugin to display sent emails in the dashboard of the website. This is the WP Mail Logging plugin (version 1.12.0) from WP Mail Logging Team. With this plugin, the emails are not sent, only displayed in the dashboard, which is why I suspected that this was not the problem.

Kind regards, Diana Vlastuin

#3 in reply to: ↑ 2 @SergeyBiryukov
9 months ago

Thanks for the follow-up!

Replying to studiodv:

I came across the message regarding php mailer here: https://github.com/PHPMailer/PHPMailer/discussions/2780

That issue appears to be specific to PHPMailer version 5.0, whereas WordPress 6.4.3 uses PHPMailer 6.8.1 (#59238), so something else might be at play here.

#4 @studiodv
9 months ago

Thanks for your reply. So you don't think the problem could be related to WordPress? Or the plugin I installed?

I have also contacted the theme developer, but I have not received a response from them yet. Perhaps it could be due to the theme. I use the Kallyas Theme for all my websites and the problem occurs on several websites, so this is also a good option.

Thanks again.

Kind regards, Diana Vlastuin

Note: See TracTickets for help on using tickets.