From 40a219578fae76336f77ce8667ab0d21c7aa72d4 Mon Sep 17 00:00:00 2001 From: hellcat Date: Tue, 16 Jun 2026 19:30:11 +0800 Subject: [PATCH] no message --- src/Services/Mail/Smtp.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Services/Mail/Smtp.php b/src/Services/Mail/Smtp.php index 808d08fad..f8e7446c4 100755 --- a/src/Services/Mail/Smtp.php +++ b/src/Services/Mail/Smtp.php @@ -59,14 +59,13 @@ final class Smtp extends Base if (!$mail->send()) { $sError = $mail->ErrorInfo; + $oMailLog = new ModelMailLog(); + $oMailLog->to = $to; + $oMailLog->title = $subject; + $oMailLog->date = date("Y-m-d"); + $oMailLog->error = $sError; + $oMailLog->save(); } - - $oMailLog = new ModelMailLog(); - $oMailLog->to = $to; - $oMailLog->title = $subject; - $oMailLog->date = date("Y-m-d"); - $oMailLog->error = $sError; - $oMailLog->save(); } }