From 29ba47a8ebe009d3518f705409ebadaacae6f17e Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Sun, 31 May 2026 20:52:39 +0200 Subject: [PATCH] fix: persist errormail throttle state via setConfig instead of getConfig The errormail throttling stored the last error hash and send time with getConfig instead of setConfig, so the values were never persisted and the time-/content-based throttling never took effect. Introduced in #5894 when the phpmailer addon was dissolved into core. --- src/Mailer/Mailer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mailer/Mailer.php b/src/Mailer/Mailer.php index 8f43841086..bde73bd04d 100644 --- a/src/Mailer/Mailer.php +++ b/src/Mailer/Mailer.php @@ -340,8 +340,8 @@ public static function errorMail(): void if ($mail->Send()) { // Update configuration only if email was sent successfully - Core::getConfig('phpmailer_last_errors', $currentErrorsHash); - Core::getConfig('phpmailer_last_log_file_send_time', time()); + Core::setConfig('phpmailer_last_errors', $currentErrorsHash); + Core::setConfig('phpmailer_last_log_file_send_time', time()); } }