Differential D21786 Diff 51941 src/applications/legalpad/controller/LegalpadDocumentSignController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/controller/LegalpadDocumentSignController.php
Show First 20 Lines • Show All 675 Lines • ▼ Show 20 Lines | $path = $this->getApplicationURI(sprintf( | ||||
$signature->getSecretKey())); | $signature->getSecretKey())); | ||||
$link = PhabricatorEnv::getProductionURI($path); | $link = PhabricatorEnv::getProductionURI($path); | ||||
$name = idx($signature_data, 'name'); | $name = idx($signature_data, 'name'); | ||||
$body = pht( | $body = pht( | ||||
"%s:\n\n". | "%s:\n\n". | ||||
"This email address was used to sign a Legalpad document ". | "This email address was used to sign a Legalpad document ". | ||||
"in Phabricator:\n\n". | "in %s:\n\n". | ||||
" %s\n\n". | " %s\n\n". | ||||
"Please verify you own this email address and accept the ". | "Please verify you own this email address and accept the ". | ||||
"agreement by clicking this link:\n\n". | "agreement by clicking this link:\n\n". | ||||
" %s\n\n". | " %s\n\n". | ||||
"Your signature is not valid until you complete this ". | "Your signature is not valid until you complete this ". | ||||
"verification step.\n\nYou can review the document here:\n\n". | "verification step.\n\nYou can review the document here:\n\n". | ||||
" %s\n", | " %s\n", | ||||
$name, | $name, | ||||
PlatformSymbols::getPlatformServerName(), | |||||
$doc_name, | $doc_name, | ||||
$link, | $link, | ||||
$doc_link); | $doc_link); | ||||
id(new PhabricatorMetaMTAMail()) | id(new PhabricatorMetaMTAMail()) | ||||
->addRawTos(array($email->getAddress())) | ->addRawTos(array($email->getAddress())) | ||||
->setSubject(pht('[Legalpad] Signature Verification')) | ->setSubject(pht('[Legalpad] Signature Verification')) | ||||
->setForceDelivery(true) | ->setForceDelivery(true) | ||||
Show All 14 Lines |