Page MenuHomePhabricator

D12100.id29106.diff
No OneTemporary

D12100.id29106.diff

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;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 7:07 AM (13 h, 50 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6913109
Default Alt Text
D12100.id29106.diff (904 B)

Event Timeline