From b20b8e46263a39b7ea60e8fd1df87d0110855427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Fri, 14 Nov 2008 21:30:24 +0000 Subject: [PATCH] Add debug message when sending email git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@997 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/XHTML/EMail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XHTML/EMail.php b/lib/SimpleSAML/XHTML/EMail.php index f07911bf6..19b97a028 100644 --- a/lib/SimpleSAML/XHTML/EMail.php +++ b/lib/SimpleSAML/XHTML/EMail.php @@ -93,7 +93,7 @@ Content-Transfer-Encoding: 8bit $headers = join("\r\n", $this->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'); } -- GitLab