From 287fc75bb017dc30d2fdef1744cce3ef6e59ad7e Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 22 Aug 2012 14:02:53 -0700 Subject: [PATCH] Disable implicit mulitplexing in PHPMailerLite Summary: PHPMailerLite implicitly multiplexes mail, but we multiplex mail in an application-aware way higher in the stack. Disable the multiplexing. The actual option is here: https://secure.phabricator.com/diffusion/P/browse/master/externals/phpmailer/class.phpmailer-lite.php;03dafec74f97bcd7$166 Test Plan: @klimek confirms this fixes his issue. Reviewers: klimek, vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3365 --- .../PhabricatorMailImplementationPHPMailerLiteAdapter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php b/src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php index 99b21a695a..f0858d2ab5 100644 --- a/src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php +++ b/src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php @@ -31,6 +31,11 @@ class PhabricatorMailImplementationPHPMailerLiteAdapter require_once $root.'/externals/phpmailer/class.phpmailer-lite.php'; $this->mailer = new PHPMailerLite($use_exceptions = true); $this->mailer->CharSet = 'utf-8'; + + // By default, PHPMailerLite sends one mail per recipient. We handle + // multiplexing higher in the stack, so tell it to send mail exactly + // like we ask. + $this->mailer->SingleTo = false; } public function supportsMessageIDHeader() {