1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 11:30:55 +01:00

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
This commit is contained in:
Bob Trahan 2014-02-20 17:24:51 -08:00
parent 55a94d8aba
commit 67326bb47a

View file

@ -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);