Merge pull request #5 from simicar29/simicar29-patch-6

Avoid the doubledot issue in quoted-printable mail
This commit is contained in:
simicar29 2020-04-08 16:05:54 +02:00 committed by GitHub
commit 89bd8ecc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -814,6 +814,10 @@ class CMailFile
if (!empty($conf->global->$keyforsmtppw)) $this->transport->setPassword($conf->global->$keyforsmtppw);
//$smtps->_msgReplyTo = 'reply@web.com';
// Switch content encoding to base64 - avoid the doubledot issue with quoted-printable
$contentEncoderBase64 = new Swift_Mime_ContentEncoder_Base64ContentEncoder();
$this->message->setEncoder($contentEncoderBase64);
// Create the Mailer using your created Transport
$this->mailer = new Swift_Mailer($this->transport);