Jump to content

Hide mail() Error Message


Kryptix

Recommended Posts

I'm making it so when a user signs up it e-mails them the details, but some users will enter a fake e-mail or something to cause an error, so how would I go about hiding all error messages from mail()?

 

Also, is it wise to hide every error from everyone on a live site? I haven't really looked into it before.

Link to comment
https://forums.phpfreaks.com/topic/201337-hide-mail-error-message/
Share on other sites

You do know that hiding a problem is not the same as fixing it? :P

Rather than attempting to hide the error messages I would suggest fixing your code so that only email address which are formated correctly will be proccessed.  This way at least any erronious email addresses will be left for the mail server to deal with.

You do know that hiding a problem is not the same as fixing it? :P

Rather than attempting to hide the error messages I would suggest fixing your code so that only email address which are formated correctly will be proccessed.  This way at least any erronious email addresses will be left for the mail server to deal with.

I validate e-mails but you can still generate errors, such as using a e-mail with the same domain and stuff. I'd sooner just hide the error in case I miss something and it displays an error. How would I do that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.