From 67326bb47a0dbc731d7d337e5ba389f1ad4b13e4 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Thu, 20 Feb 2014 17:24:51 -0800 Subject: [PATCH] Fix phpmailer-lite bug Summary: Fixes T4417. In this particular codepath, the lovely CreateHeader already added the to: information, so no need to slap it on the front all ghetto style. Test Plan: imma push this live and test (I am lazy and don't want to configure amazon ses) Reviewers: epriestley CC: Korvin, epriestley, aran Maniphest Tasks: T4417 Differential Revision: https://secure.phabricator.com/D8288 --- externals/phpmailer/class.phpmailer-lite.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/externals/phpmailer/class.phpmailer-lite.php b/externals/phpmailer/class.phpmailer-lite.php index 824878d074..c064d6cddd 100644 --- a/externals/phpmailer/class.phpmailer-lite.php +++ b/externals/phpmailer/class.phpmailer-lite.php @@ -491,13 +491,7 @@ class PHPMailerLite { switch($this->Mailer) { case 'amazon-ses': - $toArr = array(); - foreach($this->to as $t) { - $toArr[] = $this->AddrFormat($t); - } - $to = implode(', ', $toArr); return $this->customMailer->executeSend( - "To: ".$to."\n". $header. $body);