From a86dc342d9a60a1e15712b643c49a586189b2128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20V=C3=B6lkl?= Date: Fri, 17 Jan 2020 14:58:46 +0100 Subject: [PATCH] Set header encoding to utf-8 As suggested here https://github.com/magepal/magento2-gmail-smtp-app/issues/152#issuecomment-564011171 --- Model/TwoDotThree/Smtp.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/TwoDotThree/Smtp.php b/Model/TwoDotThree/Smtp.php index 446f39f..d0c3154 100644 --- a/Model/TwoDotThree/Smtp.php +++ b/Model/TwoDotThree/Smtp.php @@ -80,6 +80,7 @@ public function sendSmtpMessage( $encoding = $message->getEncoding(); $message = Message::fromString($message->getRawMessage()); + $message->getHeaders()->setEncoding('utf-8'); $message->setEncoding($encoding); //Set reply-to path