diff --git a/smtp.php b/smtp.php index cf782e1..fea5465 100644 --- a/smtp.php +++ b/smtp.php @@ -8,6 +8,9 @@ class smtp { /** Debug mode */ public $debug = 0; + /** The debug file used to store all the communication between the client and + * the server. The file contains the passwords if used ! */ + public $debugFile = "/tmp/debugSMTP"; /** The authentication user allow to send SMTP mails */ public $user = null; /** The authentication password allow to send SMTP mails */ @@ -171,6 +174,6 @@ class smtp return; if ($priority > $this->debug) return; - file_put_contents ("/tmp/debugsmtp", $message, FILE_APPEND); + file_put_contents ($this->debugFile, $message, FILE_APPEND); } }