18 lines
1.4 KiB
Diff
18 lines
1.4 KiB
Diff
|
--- create_classic_poll.php 2022-02-05 09:09:45.256310389 +0100
|
||
|
+++ create_classic_poll.php-new 2022-02-05 09:03:08.924297050 +0100
|
||
|
@@ -83,8 +83,12 @@
|
||
|
$message_admin .= sprintf(' :<br/><br/><a href="%1$s">%1$s</a>', Utils::getUrlSondage($admin_poll_id, true));
|
||
|
|
||
|
if ($mailService->isValidEmail($form->admin_mail)) {
|
||
|
- $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Author\'s message') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message_admin);
|
||
|
- $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'For sending to the polled users') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message);
|
||
|
+ try {
|
||
|
+ $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Author\'s message') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message_admin);
|
||
|
+ $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'For sending to the polled users') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message);
|
||
|
+ } catch (Exception $e) {
|
||
|
+ $sessionService->set("Framadate", "messageBadEmail", TRUE);
|
||
|
+ }
|
||
|
}
|
||
|
}
|
||
|
|