From 38db9395be8ebdcb6ea92f12988c3e96f5258c2b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 3 May 2016 13:35:05 +0000 Subject: [PATCH] smtp : allow the debug to be stored in a defined file git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2717 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- smtp.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }