Mail review stage 2: the mail queue sends at most config_mail_send_per_minute a minute (database 4.2.9, Admin > Settings > Mail, Sending) over one connection with bulk email last, retries over about eight hours on a growing wait, stops for the minute when the server turns two away in a row, costs no email a try when the server can't be reached, doesn't retry an address turned away for good and marks its contact Email bounced, sends an email once when only someone copied in is turned away, tells admins once an hour at most instead of every agent per email, and gives each email a plain text part and ITFlow's own host name; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-11-30 16:50:04 -05:00
parent a9e5bc66db
commit 899f2259fe
12 changed files with 488 additions and 320 deletions

View File

@@ -73,7 +73,7 @@ if ($config_login_key_required && trim((string) $config_login_key_secret) === ''
$mail_queue = mailQueueSummary();
if ($mail_queue['failed_day']) {
$attention[] = ['danger', 'fa-envelope-open-text', $mail_queue['failed_day'] . ' email' . ($mail_queue['failed_day'] === 1 ? '' : 's') . ' failed to send',
'In the last day - ITFlow tried ' . MAIL_QUEUE_TRIES . ' times and gave up. The Mail Queue says why, and can try again.', 'mail_queue.php?show=failed', 'See why'];
'In the last day - out of tries, or turned away for good by the mail server. The Mail Queue says why, and can try again.', 'mail_queue.php?show=failed', 'See why'];
}
$mail_queue_health = mailQueueHealth();
if (!empty($config_smtp_provider) && in_array($mail_queue_health['key'], ['cron_off', 'cron_stopped', 'job_off', 'slow'], true)) {