php - Disable PHPMailer error messages -


how disable error messages phpmailer class? i'm displaying own error messages , don't want users see errors such "smtp error: not connect smtp host."

my code: http://pastie.org/1497819

thanks

this not best solution, works.

in phpmailer library folder open "class.phpmailer.php",

find

public function send() 

inside comment line

echo $e->getmessage()."\n"; 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -