diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php index 59d2d563c9..e6d8e52c45 100644 --- a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php +++ b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php @@ -206,6 +206,11 @@ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO { return $this; } + public function setRawFrom($raw_email, $raw_name) { + $this->setParam('raw-from', array($raw_email, $raw_name)); + return $this; + } + public function setReplyTo($reply_to) { $this->setParam('reply-to', $reply_to); return $this; @@ -430,6 +435,10 @@ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO { foreach ($params as $key => $value) { switch ($key) { + case 'raw-from': + list($from_email, $from_name) = $value; + $mailer->setFrom($from_email, $from_name); + break; case 'from': $from = $value; $actor_email = null;