From bc0f76e6dc09080a21fbe37da861bdc9a903f397 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 27 Oct 2025 18:15:05 +0400 Subject: [PATCH] bug --- php/src/mail/mailer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/src/mail/mailer.php b/php/src/mail/mailer.php index ac2e9ad..cfdc84d 100644 --- a/php/src/mail/mailer.php +++ b/php/src/mail/mailer.php @@ -173,7 +173,8 @@ class mailer { $tos = str::join(",", $tos); msg::debug("Sending to $tos"); if (!$mailer->send()) { - throw new MailerException("erreur d'envoi du mail", $mailer->ErrorInfo); + throw (new MailerException("erreur d'envoi du mail")) + ->setTechMessage($mailer->ErrorInfo); } }