Differential D25002 Diff 39 src/applications/auth/controller/contact/PhabricatorAuthContactNumberTestController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/contact/PhabricatorAuthContactNumberTestController.php
Show All 33 Lines | if ($request->isFormPost()) { | ||||
$uri = new PhutilURI($uri); | $uri = new PhutilURI($uri); | ||||
$mail = id(new PhabricatorMetaMTAMail()) | $mail = id(new PhabricatorMetaMTAMail()) | ||||
->setMessageType(PhabricatorMailSMSMessage::MESSAGETYPE) | ->setMessageType(PhabricatorMailSMSMessage::MESSAGETYPE) | ||||
->addTos(array($viewer->getPHID())) | ->addTos(array($viewer->getPHID())) | ||||
->setSensitiveContent(false) | ->setSensitiveContent(false) | ||||
->setBody( | ->setBody( | ||||
pht( | pht( | ||||
'This is a terse test text message from Phabricator (%s).', | 'This is a terse test text message from %s (%s).', | ||||
PhabricatorPlatformSite::getName(), | |||||
$uri->getDomain())) | $uri->getDomain())) | ||||
->save(); | ->save(); | ||||
return id(new AphrontRedirectResponse())->setURI($mail->getURI()); | return id(new AphrontRedirectResponse())->setURI($mail->getURI()); | ||||
} | } | ||||
$number_display = phutil_tag( | $number_display = phutil_tag( | ||||
'strong', | 'strong', | ||||
Show All 14 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0