1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Send SMTP mail using quoted-printable encoding in all cases

Summary: See D10278. This works around a bug (?) in SendGrid, see http://stackoverflow.com/questions/6276181/extra-newlines-in-plain-text-emails-sent-via-sendgrid

Test Plan: @nickz confirmed this resolved his issue. See also D10278.

Reviewers: nickz, btrahan, chad

Reviewed By: chad

Subscribers: nickz, epriestley

Differential Revision: https://secure.phabricator.com/D10303
This commit is contained in:
epriestley 2014-08-19 17:36:38 -07:00
parent 6f85c22faf
commit 5449200972

View file

@ -13,6 +13,11 @@ final class PhabricatorMailImplementationPHPMailerAdapter
$this->mailer = new PHPMailer($use_exceptions = true); $this->mailer = new PHPMailer($use_exceptions = true);
$this->mailer->CharSet = 'utf-8'; $this->mailer->CharSet = 'utf-8';
// NOTE: This works around what seems to be a bug in SendGrid, see
// D10278. This affects other SMTP mailers too, but as long as they
// don't have an opposite bug to SendGrid's bug that should be OK.
$this->mailer->Encoding = 'quoted-printable';
// By default, PHPMailer sends one mail per recipient. We handle // By default, PHPMailer sends one mail per recipient. We handle
// multiplexing higher in the stack, so tell it to send mail exactly // multiplexing higher in the stack, so tell it to send mail exactly
// like we ask. // like we ask.