diff options
Diffstat (limited to 'core/libraries')
-rw-r--r-- | core/libraries/Sendmail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libraries/Sendmail.php b/core/libraries/Sendmail.php index 88b74255..a1092734 100644 --- a/core/libraries/Sendmail.php +++ b/core/libraries/Sendmail.php @@ -83,7 +83,7 @@ class Sendmail_Core { // need to use a single \n. This can be set in config/sendmail.php $headers = implode($this->header_separator, $headers); $message = wordwrap($this->message, $this->line_length, "\n"); - if ($this->mail($to, $this->subject, $message, $headers)) { + 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"); |