diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php --- a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php +++ b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php @@ -206,6 +206,11 @@ 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 @@ 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;