diff --git a/lib/SimpleSAML/XHTML/EMail.php b/lib/SimpleSAML/XHTML/EMail.php
index f07911bf69cb33d4a959cfc55f0e66470ba09b29..19b97a028412b8ec46d21531468937c7252200a8 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');
 	}