added mail to events

This commit is contained in:
2026-09-18 09:52:51 +02:00
parent dea86cb6df
commit ae981536bd
21 changed files with 1646 additions and 76 deletions
+5 -1
View File
@@ -41,7 +41,11 @@ try {
// 3) Notifica (opzionale). Il template vero arriva nello step successivo.
if ($notify && !empty($participants)) {
foreach ($participants as $p) {
sendEventCancellationMail($p['email'], $p['name'], $event);
try {
yse_mail_event_cancel($p, $event);
} catch (Throwable $mailEx) {
error_log('[event_delete mail] ' . $mailEx->getMessage());
}
}
}