Fix part of #87 Use HTML tag for links in mails
This commit is contained in:
parent
28e94447eb
commit
7103cdebff
@ -102,10 +102,10 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (
|
|||||||
$message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll.");
|
$message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll.");
|
||||||
$message .= '<br/><br/>';
|
$message .= '<br/><br/>';
|
||||||
$message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>';
|
$message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>';
|
||||||
$message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/>%s';
|
$message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/><a href="%1$s">%1$s</a>';
|
||||||
|
|
||||||
$message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above");
|
$message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above");
|
||||||
$message_admin .= ' :<br/><br/>%s';
|
$message_admin .= ' :<br/><br/><a href="%1$s">%1$s</a>';
|
||||||
|
|
||||||
$message = sprintf($message, Utils::getUrlSondage($poll_id));
|
$message = sprintf($message, Utils::getUrlSondage($poll_id));
|
||||||
$message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true));
|
$message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true));
|
||||||
|
@ -99,10 +99,10 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) ||
|
|||||||
$message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll.");
|
$message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll.");
|
||||||
$message .= '<br/><br/>';
|
$message .= '<br/><br/>';
|
||||||
$message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>';
|
$message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>';
|
||||||
$message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/>%s';
|
$message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/><a href="%1$s">%1$s</a>';
|
||||||
|
|
||||||
$message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above");
|
$message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above");
|
||||||
$message_admin .= ' :<br/><br/>%s';
|
$message_admin .= ' :<br/><br/><a href="%1$s">%1$s</a>';
|
||||||
|
|
||||||
$message = sprintf($message, Utils::getUrlSondage($poll_id));
|
$message = sprintf($message, Utils::getUrlSondage($poll_id));
|
||||||
$message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true));
|
$message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true));
|
||||||
|
@ -80,7 +80,8 @@ function sendUpdateNotification($poll, $mailService, $name, $type) {
|
|||||||
$message .= __('Mail', "wrote a comment.\nYou can find your poll at the link") . " :\n\n";
|
$message .= __('Mail', "wrote a comment.\nYou can find your poll at the link") . " :\n\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$message .= Utils::getUrlSondage($poll->admin_id, true) . "\n\n";
|
$urlSondage = Utils::getUrlSondage($poll->admin_id, true);
|
||||||
|
$message .= '<a href="' . $urlSondage . '">' . $urlSondage . '</a>' . "\n\n";
|
||||||
|
|
||||||
$messageTypeKey = $type . '-' . $poll->id;
|
$messageTypeKey = $type . '-' . $poll->id;
|
||||||
$mailService->send($poll->admin_mail, $subject, $message, $messageTypeKey);
|
$mailService->send($poll->admin_mail, $subject, $message, $messageTypeKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user