Re: Send Sharable Link Code
Posted: Fri Oct 01, 2021 6:45 am
Use this code in the procedure and the result of nuSendEmail() will be displayed:
Code: Select all
$recordURL = nuGetRecordURL('', 'nubuilder', 'nuuserhome');
$body = $recordURL;
$to = 'to@test.com'; // replace with recipient email address
$from = 'from@test.com'; // replace with from email address
$fromName = 'from Name'; // replace with from name
$subject = 'test';
$cc = '';
$bcc = '';
$result = nuSendEmail($to, $fromAddress, $fromName, $body, $subject, array(), true, $cc, $bcc);
if (count($result) == 2) {
showMessage(nuTranslate('Result'), $result[1]);
} else {
showMessage(nuTranslate('Result'), $result[1].'<br>'.$result[2]);
}
function showMessage($title, $msg) {
nuJavascriptCallback("nuMessage(['<h2>".$title."</h2><br>" . $msg . "']);");
}