@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow MetaMTAMail to send with a raw "From" address

Summary:
Ref T7607. Ref T7522.

- For the import tools, I want to send from "Phacility Support <support@phacility.com>".
- In the general case, I want to send billing mail from merchants (T7607) later on.

Test Plan: Sent an email and saw the desired "From" address.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T7607, T7522

Differential Revision: https://secure.phabricator.com/D12100

+9
+9
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
··· 206 206 return $this; 207 207 } 208 208 209 + public function setRawFrom($raw_email, $raw_name) { 210 + $this->setParam('raw-from', array($raw_email, $raw_name)); 211 + return $this; 212 + } 213 + 209 214 public function setReplyTo($reply_to) { 210 215 $this->setParam('reply-to', $reply_to); 211 216 return $this; ··· 430 435 431 436 foreach ($params as $key => $value) { 432 437 switch ($key) { 438 + case 'raw-from': 439 + list($from_email, $from_name) = $value; 440 + $mailer->setFrom($from_email, $from_name); 441 + break; 433 442 case 'from': 434 443 $from = $value; 435 444 $actor_email = null;