D7.100 and php8.2 with mimemail failing to display html

Created on 17 July 2024, 9 months ago

I updated a D7 site to use php8.2 (required because of encryption issues for SagePay with php 7) and it mostly works, but I have a weird issue with Commerce email notifications. It is set to use mimemail for html emails and worked fine under php 7.4.

The emails show in plain text this at the start:

This is a multi-part message in MIME format.

--43d3c19221c7c3a23b01b8168a773d2eb4c4486b7
Content-Type: multipart/alternative;
 boundary="2a221e989dcd4438c1d7c69cf939c81049db83376"
Content-Transfer-Encoding: 8bit

--2a221e989dcd4438c1d7c69cf939c81049db83376
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

and then at the end of the email this:

Content-Type: text/html; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: base64

DQo8IURPQ1RZUEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMCBTdHJpY3QvL0VO
IiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtc3RyaWN0LmR0ZCI+DQo8
aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+DQogICAgPGhlYWQ+DQog
.....

Has anyone come across this issue and perhaps knows how to fix it?

Thanks
Martin

πŸ’¬ Support request
Status

Active

Version

1.2

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom nattyweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024