Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/worker/PhabricatorAuthInviteWorker.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | protected function doWork() { | ||||
$invite->save(); | $invite->save(); | ||||
$mail = id(new PhabricatorMetaMTAMail()) | $mail = id(new PhabricatorMetaMTAMail()) | ||||
->addRawTos(array($invite->getEmailAddress())) | ->addRawTos(array($invite->getEmailAddress())) | ||||
->setForceDelivery(true) | ->setForceDelivery(true) | ||||
->setSubject( | ->setSubject( | ||||
pht( | pht( | ||||
'[Phabricator] %s has invited you to join Phabricator', | '[%s] %s has invited you to join %s', | ||||
$author->getFullName())) | PlatformSymbols::getPlatformServerName(), | ||||
$author->getFullName(), | |||||
PlatformSymbols::getPlatformServerName())) | |||||
->setBody($template) | ->setBody($template) | ||||
->saveAndSend(); | ->saveAndSend(); | ||||
} | } | ||||
} | } |