Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
Show First 20 Lines • Show All 600 Lines • ▼ Show 20 Lines | try { | ||||
$add_to = array($placeholder); | $add_to = array($placeholder); | ||||
} else { | } else { | ||||
$add_to = $add_cc; | $add_to = $add_cc; | ||||
$add_cc = array(); | $add_cc = array(); | ||||
} | } | ||||
} | } | ||||
$add_to = array_unique($add_to); | $add_to = array_unique($add_to); | ||||
$add_cc = array_unique($add_cc); | $add_cc = array_diff(array_unique($add_cc), $add_to); | ||||
$mailer->addTos($add_to); | $mailer->addTos($add_to); | ||||
if ($add_cc) { | if ($add_cc) { | ||||
$mailer->addCCs($add_cc); | $mailer->addCCs($add_cc); | ||||
} | } | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$this | $this | ||||
->setStatus(self::STATUS_FAIL) | ->setStatus(self::STATUS_FAIL) | ||||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |