Don't record mail failures when we throw the exception, record them

when we catch the exception instead.
This commit is contained in:
Bharat Mediratta
2009-08-28 11:51:41 -07:00
parent 16fc4465d0
commit 5133f93290
2 changed files with 33 additions and 23 deletions
-2
View File
@@ -86,8 +86,6 @@ class Sendmail_Core {
$headers = implode($this->header_separator, $headers);
$message = wordwrap($this->message, $this->line_length, "\n");
if (!$this->mail($to, $this->subject, $message, $headers)) {
Kohana::log("error", wordwrap("Sending mail failed:\nTo: $to\n $this->subject\n" .
"Headers: $headers\n $this->message"));
throw new Exception("@todo SEND_MAIL_FAILED");
}
return $this;