Now It might seems really dumb question, but.. I am working on one of my projects where users don't need to register or login to post an advert, but they have to provide email so that confirmation link will be sent to their email address for further actions..
Now I was reading how poor email validation is useless and that invalid emails still can pass through most of the checking functionality. But what can go wrong if the users email is not valid? I mean, if users email address is //bob"the+powerfull/@mail.com and this returns as valid email through validator whats going to happen?
Why just a simple validation is not enaugh? If I don't store emails in db and just sending an email confirmation? Can't I just use preg_match or filter_var? If user uses email like I already mentioned, do you even want users like that to visit your page at all?
Aucun commentaire:
Enregistrer un commentaire