Skip to content
Snippets Groups Projects
Commit b20b8e46 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Add debug message when sending email

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@997 44740490-163a-0410-bde0-09ae8108e29a
parent 0ce2490b
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ Content-Transfer-Encoding: 8bit ...@@ -93,7 +93,7 @@ Content-Transfer-Encoding: 8bit
$headers = join("\r\n", $this->headers); $headers = join("\r\n", $this->headers);
$mail_sent = @mail($this->to, $this->subject, $message, $headers); $mail_sent = @mail($this->to, $this->subject, $message, $headers);
SimpleSAML_Logger::debug('Email: Sending e-mail to [' . $this->to . '] : ' . ($mail_sent ? 'OK' : 'Failed'));
if (!$mail_sent) throw new Exception('Error when sending e-mail'); if (!$mail_sent) throw new Exception('Error when sending e-mail');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment