mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-23 07:15:50 -04:00
Don't record mail failures when we throw the exception, record them
when we catch the exception instead.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user