1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Set from name when $can_send_as_user is true

Test Plan: Crossed fingers.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8694
This commit is contained in:
Ben Alpert 2014-04-03 17:51:23 -07:00 committed by epriestley
parent a0ac3d6716
commit 133772d7eb

View file

@ -363,7 +363,7 @@ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO {
PhabricatorEnv::getEnvConfig('metamta.can-send-as-user');
if ($can_send_as_user) {
$mailer->setFrom($actor_email);
$mailer->setFrom($actor_email, $actor_name);
} else {
$from_email = coalesce($actor_email, $default_from);
$from_name = coalesce($actor_name, pht('Phabricator'));