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()); } }