Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | protected function newMail() { | ||||
$message_body = $this->newBody(); | $message_body = $this->newBody(); | ||||
if ($message_body !== null) { | if ($message_body !== null) { | ||||
$message[] = $message_body; | $message[] = $message_body; | ||||
} | } | ||||
$message = implode("\n\n", $message); | $message = implode("\n\n", $message); | ||||
return id(new PhabricatorMetaMTAMail()) | return id(new PhabricatorMetaMTAMail()) | ||||
->addTos(array($recipient->getPHID())) | |||||
->setSubject(pht('[Phabricator] Welcome to Phabricator')) | ->setSubject(pht('[Phabricator] Welcome to Phabricator')) | ||||
->setBody($message); | ->setBody($message); | ||||
} | } | ||||
private function newBody() { | private function newBody() { | ||||
$recipient = $this->getRecipient(); | $recipient = $this->getRecipient(); | ||||
$custom_body = $this->getWelcomeMessage(); | $custom_body = $this->getWelcomeMessage(); | ||||
Show All 20 Lines |