Commit 13bdb30e87f4d673b685044cf2190406691078e3

Authored by michael
1 parent 0f3dc932

#3500 added error logging


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2806 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
lib/email/Email.inc
... ... @@ -101,8 +101,10 @@ class Email {
101 101  
102 102 //send the email
103 103 if(!$this->oMailer->Send()) {
104   - $_SESSION["errorMessage"] = $lang_err_email . " " . $this->oMailer->ErrorInfo;
  104 + $default->log->error("Error sending mail to $mToEmail; mailer error code=" . $this->oMailer->ErrorInfo);
105 105 return false;
  106 + } else {
  107 + $default->log->info("Successfully sent mail to $mToEmail");
106 108 }
107 109 return true;
108 110 } else {
... ...