Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/aps/xcrud/mailer/docs/ drwxr-xr-x |
Viewing file: Note_for_SMTP_debugging.txt (1.03 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | If you are having problems connecting or sending emails through your SMTP server, the SMTP class can provide more information about the processing/errors taking place. Use the debug functionality of the class to see what's going on in your connections. To do that, set the debug level in your script. For example: $mail->SMTPDebug = 1; $mail->isSMTP(); // telling the class to use SMTP $mail->SMTPAuth = true; // enable SMTP authentication $mail->Port = 26; // set the SMTP port $mail->Host = "mail.yourhost.com"; // SMTP server $mail->Username = "name@yourhost.com"; // SMTP account username $mail->Password = "your password"; // SMTP account password Notes on this: $mail->SMTPDebug = 0; ... will disable debugging (you can also leave this out completely, 0 is the default) $mail->SMTPDebug = 1; ... will echo errors and server responses $mail->SMTPDebug = 2; ... will echo errors, server responses and client messages And finally, don't forget to disable debugging before going into production. |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0083 ]-- |