The Correct Way to Validate Email Addresses
hackernoon.com
The Correct Way to Validate Email Addresses
1–10 of 405 posts
Re: The Correct Way to Validate Email Addresses
#2Re: The Correct Way to Validate Email Addresses
#3Re: The Correct Way to Validate Email Addresses
#4TL;DR the odds that the user entered an incorrect-but-valid address are way higher than that they entered one which will not actually be able to receive mail. Send a validation email.
In other words, it does make sense to check that they entered an '@' symbol somewhere, since it shows that they understood it was an email field. Any 'validation' beyond that is useless.
Re: The Correct Way to Validate Email Addresses
#5Re: The Correct Way to Validate Email Addresses
#6Re: The Correct Way to Validate Email Addresses
#7TL;DR the odds that the user entered an incorrect-but-valid address are way higher than that they entered one which will not actually be able to receive mail. Send a validation email.
Also relevant was, "If you have a well laid-out form with a label that says “email”, and the user enters an ‘@’ symbol somewhere, then it’s safe to say they understood that they were supposed to be entering an email address." In other words, it does make sense to check that they entered an '@' symbol somewhere, since it shows that they understood it was an email field. Any 'validation' beyond that is useless.
Re: The Correct Way to Validate Email Addresses
#8Just goes to show that assumptions are often wrong, and you have to crack open the spec document from time to time... [1]