-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.2.0+ corrupts HTML body #3054
Comments
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
That didn't happen; nothing was dropped, and this change was explicitly mentioned in the release notes, to quote:
PHP 8.0 fixed a bug relating to the use of line breaks in the |
Problem description
I'm trying to upgrade dependencies for a legacy project
It's using PHPMailer v5 and all is good
I tried to upgrade to the latest version but some HTML emails are now corrupted
I narrowed it down to 6.2.0 which is the first version to exhibit this problem
6.1.8 was the last to send the HTML as is
Here's the diff between the email source as seen by the recipient server
I tried to debug it in the source code and can confirm that the call to the
mail()
function in\PHPMailer\PHPMailer\PHPMailer::mailPassthru
still has the right content. However somewhere along the way some HTML tags are lost. Since 6.1.8 still sends it correctly I can't help but this this has to be header/configuration issue.I don't have any ideas but maybe someone has reported this issue before and you may advise in which direction to look.
Here's my initialization:
The text was updated successfully, but these errors were encountered: