NEW Survey - Add a clickable link in email send
This commit is contained in:
parent
0aa0328313
commit
26d5ccee61
@ -198,7 +198,6 @@ function getUrlSondage($id, $admin = false)
|
|||||||
} else {
|
} else {
|
||||||
$url = get_server_name().'/public/studs.php?sondage='.$id;
|
$url = get_server_name().'/public/studs.php?sondage='.$id;
|
||||||
}
|
}
|
||||||
$url = '<a href="'.$url.'">'.$url.'</a>';
|
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -165,7 +165,9 @@ if (GETPOST("boutonp") || GETPOST("boutonp.x") || GETPOST("boutonp_x")) { // bo
|
|||||||
|
|
||||||
$application = ($conf->global->MAIN_APPLICATION_TITLE ? $conf->global->MAIN_APPLICATION_TITLE : 'Dolibarr ERP/CRM');
|
$application = ($conf->global->MAIN_APPLICATION_TITLE ? $conf->global->MAIN_APPLICATION_TITLE : 'Dolibarr ERP/CRM');
|
||||||
|
|
||||||
$body = str_replace('\n', '<br>', $langs->transnoentities('EmailSomeoneVoted', $nom, getUrlSondage($numsondage, true)));
|
$link = getUrlSondage($numsondage, true);
|
||||||
|
$link = '<a href="'.$link.'">'.$link.'</a>';
|
||||||
|
$body = str_replace('\n', '<br>', $langs->transnoentities('EmailSomeoneVoted', $nom, $link));
|
||||||
//var_dump($body);exit;
|
//var_dump($body);exit;
|
||||||
|
|
||||||
$cmailfile = new CMailFile("[".$application."] ".$langs->trans("Poll").': '.$object->title, $email, $conf->global->MAIN_MAIL_EMAIL_FROM, $body, null, null, null, '', '', 0, -1);
|
$cmailfile = new CMailFile("[".$application."] ".$langs->trans("Poll").': '.$object->title, $email, $conf->global->MAIN_MAIL_EMAIL_FROM, $body, null, null, null, '', '', 0, -1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user