auth_users.email). Deduplicated per * maintenance + email + type + day by maint_notifications. */ require_once __DIR__ . '/../../class/db-functions.php'; require_once __DIR__ . '/../include/functions.php'; require_once __DIR__ . '/../../../../vendor/autoload.php'; use Dotenv\Dotenv; use PHPMailer\PHPMailer\PHPMailer; $dotenv = Dotenv::createImmutable(__DIR__ . '/../../../../'); $dotenv->safeLoad(); $pdo = mnt_pdo(); $today = date('Y-m-d'); $appUrl = rtrim($_ENV['APP_URL'] ?? 'http://localhost:8001', '/'); /** * --dry-run (or MNT_MAIL_DRYRUN=1) works out the queue and prints it without * sending anything and without writing to maint_notifications, so a run leaves * no trace and can be repeated. Useful before a change to see what tonight * would deliver, and it is what the test suite drives. * * One line per queued message, tab separated: * QUEUE