1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +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'); PhabricatorEnv::getEnvConfig('metamta.can-send-as-user');
if ($can_send_as_user) { if ($can_send_as_user) {
$mailer->setFrom($actor_email); $mailer->setFrom($actor_email, $actor_name);
} else { } else {
$from_email = coalesce($actor_email, $default_from); $from_email = coalesce($actor_email, $default_from);
$from_name = coalesce($actor_name, pht('Phabricator')); $from_name = coalesce($actor_name, pht('Phabricator'));