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:
parent
6f85c22faf
commit
5449200972
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue