From 13759821fef28763f99a3b2bea163974da9396f1 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 3 Feb 2025 17:56:42 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=98=88=EC=99=B8=20=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?#354?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mailer.lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/mailer.lib.php b/lib/mailer.lib.php index 10a0fcc46..0fc77de7c 100644 --- a/lib/mailer.lib.php +++ b/lib/mailer.lib.php @@ -52,9 +52,12 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file="", $cc= $mail = run_replace('mail_options', $mail, $fname, $fmail, $to, $subject, $content, $type, $file, $cc, $bcc); - $mail_send_result = $mail->send(); - + if (!($mail_send_result = $mail->send())) { + throw new Exception($mail->ErrorInfo); + } + } catch (Exception $e) { + error_log("Mail sending error: " . $e->getMessage()); } run_event('mail_send_result', $mail_send_result, $mail, $to, $cc, $bcc);