I am working on a 'forgot password' form, currently I am working locally so the mail function will not work but the errors come up like this:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ... on line 508
Error Sending Email - [email protected], Password Reset,
You have requested your password to be reset. To login, use the username and password below:
Username: admin
Password: azurapura
...
Obviously, if the mail function does not work I wouldn't want someone to see the message/password unless it is through their mail. Is there a way to disable that part of the error from showing or is there a way to customize the error for this function?
I saw a post to create error handlers however, this seems like it only applies to types of errors (warnings...)