Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.