Question : phpmailer errorInfo

echo "<br>Mailer Error: " . $mail->ErrorInfo;

does not produce output

I am not sure i am including class.phpmailer.php

how can I add a line to class.phpmailer.php to show that I have included file

Answer : phpmailer errorInfo

First, use:  error_reporting(E_ALL);
If you log errors only in file, include this also: ini_set('display_errors', '1');

You can include file "again" using include_once(); - if it's already loded, it will not produce any error. To check which files are included, use method get_included_files(); (http://www.php.net/manual/en/function.get-included-files.php)

If it's all loaded, try enabling verbose debug mode in phpmailer.

Random Solutions  
 
programming4us programming4us