Is there any way to prevent php syntax error messages from printing to the browser screen?
I'm using the mail function to send email. If someone enters an incorrect address like someonesomewhere.com (missing the @ symbol) i get this on the screen;
Warning: mail(): SMTP server response: 501 Syntax error, parameters in command "RCPT TO:< someonesomewhere.com>" unrecognized or missing in u:\inetpub\ on line 222
How can i prevent this from appearing and put in my own error message instead?
I'm using the mail function to send email. If someone enters an incorrect address like someonesomewhere.com (missing the @ symbol) i get this on the screen;
Warning: mail(): SMTP server response: 501 Syntax error, parameters in command "RCPT TO:< someonesomewhere.com>" unrecognized or missing in u:\inetpub\ on line 222
How can i prevent this from appearing and put in my own error message instead?