Using PHPMailer to send out a confirmation email to myself.
If there is a mail server issue I get the following error on the command $mail->Send():
"Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 in..."
It is in an if else statement so the rest of the page loads displaying my own personal error message, but I really don't want the visitor seeing the warning message listed above.
Is there a way to disable the default messages or capture them so they don't display on the web page and just throw my own custom message?
Thanks.