Bug within HtmlMimeMail.php

Wappler Version : 2.1.5
Operating System : Windows 7

Expected behavior

Emails should be sent and rendered correctly.
image

Actual behavior

Emails are sent with the incorrect encoding which primarily effects Outlook clients. This results in β€œ=” signs being placed within the email body.
image

How to reproduce

Send an email with a lot of text (according to Google, this affects every 75th character) and open the email in Outlook.

How to resolve

Change HtmlMimeMail.php:682 in dmxConnectLib/lib/mail from

$this->setCrlf($type == 'mail' ? "\n" : "\r\n");

to…

$this->setCrlf("\r\n");

so the if statement looks as follows:

		if (!defined('CRLF')) {
			$this->setCrlf("\r\n");
		}

This resolved the issue for me (as shown in the screenshots above), however, I’m unsure if this affects other clients as I’ve yet to test it with various email clients.

While I could open a PR with the original repo, I was worried to see that it’s no longer supported and references security issues, instead recommending that users adopt PHPMailer.

Should this be a concern for Wappler users?

Many thanks.

1 Like

this was fixed in Wappler 2.2.0