Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | protected function newMail() { | ||||
$uri = $engine->getOneTimeLoginURI( | $uri = $engine->getOneTimeLoginURI( | ||||
$recipient, | $recipient, | ||||
$recipient->loadPrimaryEmail(), | $recipient->loadPrimaryEmail(), | ||||
PhabricatorAuthSessionEngine::ONETIME_WELCOME); | PhabricatorAuthSessionEngine::ONETIME_WELCOME); | ||||
$message = array(); | $message = array(); | ||||
$message[] = pht('Welcome to Phabricator!'); | $message[] = pht( | ||||
'Welcome to %s!', | |||||
PlatformSymbols::getPlatformServerName()); | |||||
$message[] = pht( | $message[] = pht( | ||||
'%s (%s) has created an account for you.', | '%s (%s) has created an account for you.', | ||||
$sender->getUsername(), | $sender->getUsername(), | ||||
$sender->getRealName()); | $sender->getRealName()); | ||||
$message[] = pht( | $message[] = pht( | ||||
' Username: %s', | ' Username: %s', | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | $default_body = PhabricatorAuthMessage::loadMessageText( | ||||
$recipient, | $recipient, | ||||
PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY); | PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY); | ||||
if (strlen($default_body)) { | if (strlen($default_body)) { | ||||
return $this->newRemarkupText($default_body); | return $this->newRemarkupText($default_body); | ||||
} | } | ||||
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); | ||||
if (!$is_serious) { | if (!$is_serious) { | ||||
return pht("Love,\nPhabricator"); | return pht( | ||||
"Love,\n%s", | |||||
PlatformSymbols::getPlatformServerName()); | |||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
} | } |