From 13bdb30e87f4d673b685044cf2190406691078e3 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 17 Dec 2003 11:25:54 +0000 Subject: [PATCH] #3500 added error logging --- lib/email/Email.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/email/Email.inc b/lib/email/Email.inc index 667c786..a278724 100644 --- a/lib/email/Email.inc +++ b/lib/email/Email.inc @@ -101,8 +101,10 @@ class Email { //send the email if(!$this->oMailer->Send()) { - $_SESSION["errorMessage"] = $lang_err_email . " " . $this->oMailer->ErrorInfo; + $default->log->error("Error sending mail to $mToEmail; mailer error code=" . $this->oMailer->ErrorInfo); return false; + } else { + $default->log->info("Successfully sent mail to $mToEmail"); } return true; } else { -- libgit2 0.21.4