From 6bfd0ff275c16a402196f40d0ab58da6a6b1d6a2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 14 Feb 2018 10:49:27 -0800 Subject: [PATCH] Support "encoding", which is required by PHPMailerLite, in SES adapter Summary: See . The adapter class tree is a mess and this property is read by the parent class. Test Plan: Configured an SES mailer, used `bin/mail send-test` to reproduce the issue before the patch and observe it working after the patch. Differential Revision: https://secure.phabricator.com/D19083 --- .../adapter/PhabricatorMailImplementationAmazonSESAdapter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/metamta/adapter/PhabricatorMailImplementationAmazonSESAdapter.php b/src/applications/metamta/adapter/PhabricatorMailImplementationAmazonSESAdapter.php index 22cc102262..a26b074df9 100644 --- a/src/applications/metamta/adapter/PhabricatorMailImplementationAmazonSESAdapter.php +++ b/src/applications/metamta/adapter/PhabricatorMailImplementationAmazonSESAdapter.php @@ -26,6 +26,7 @@ final class PhabricatorMailImplementationAmazonSESAdapter 'access-key' => 'string', 'secret-key' => 'string', 'endpoint' => 'string', + 'encoding' => 'string', )); } @@ -34,6 +35,7 @@ final class PhabricatorMailImplementationAmazonSESAdapter 'access-key' => null, 'secret-key' => null, 'endpoint' => null, + 'encoding' => 'base64', ); } @@ -42,6 +44,7 @@ final class PhabricatorMailImplementationAmazonSESAdapter 'access-key' => PhabricatorEnv::getEnvConfig('amazon-ses.access-key'), 'secret-key' => PhabricatorEnv::getEnvConfig('amazon-ses.secret-key'), 'endpoint' => PhabricatorEnv::getEnvConfig('amazon-ses.endpoint'), + 'encoding' => PhabricatorEnv::getEnvConfig('phpmailer.smtp-encoding'), ); }