From 09507fc19aed9eb7d3b7b72a79fdccd5e5d5d689 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 14 Nov 2024 21:11:03 +0100 Subject: [PATCH] Added Cron script for MaintenanceNotification emails --- scripts/send-maintenance-notifications.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/send-maintenance-notifications.php diff --git a/scripts/send-maintenance-notifications.php b/scripts/send-maintenance-notifications.php new file mode 100755 index 000000000..4c3a05dd7 --- /dev/null +++ b/scripts/send-maintenance-notifications.php @@ -0,0 +1,21 @@ +#!/usr/bin/php +id); +define("INTERNAL_USER_USERNAME", $me->username); +define("MFBASE_BYPASS_LOGIN", true); + +foreach(MaintenanceNotification::searchActive([]) as $notification) { + $notification->sendToRecipients(); +}