News for hackers. Stuff that matters.
Re:How not to validate email addresses by bluedino on Monday October 14, 2013 @03:15PM (#6549036)
I'd check the TLD as well.

Going through the error logs on our mail server, there are a lot of people out there that get their email address wrong even if you have them type it last. .cmo instead of .com, transposing letters in their name, spelling their company name wrong...

Re:How not to validate email addresses by swanson on Monday October 14, 2013 @03:17PM (#6549046)
Yep - that JS library will take care of that as well: https://github.com/Kicksend/mailcheck/blob/master/src/mailch...

"hotnail.con" -> "hotmail.com"

Re:How not to validate email addresses by inthewind on Monday October 14, 2013 @03:26PM (#6549092)
Isn't this pointless with the wholesale of TLDs?
Re:How not to validate email addresses by inthewind on Wednesday October 16, 2013 @11:05AM (#6560036)
Reading the article, the main use for the TLD check is to see if you have a typo, and if so suggest a correction - rather than automatically correcting the typo for you. Which I agree could be useful for the big email providers. (e.g you type gmial and it suggests a correction of gmail).
Re:How not to validate email addresses by inthewind on Monday October 14, 2013 @03:28PM (#6549099)
Also sometimes you don't even need the TLD:

user@myhostname, is a valid email address, and yet it's rejected by a lot of libraries.

Re:How not to validate email addresses by dfox on Monday October 14, 2013 @03:52PM (#6549246)
It's certainly valid address, but why would you want to input that as an email address into public-facing service that you do not operate?
Re:How not to validate email addresses by inthewind on Monday October 14, 2013 @05:12PM (#6549674)
Perhaps I do operate it. Can be very useful on say a dev box.
Re:How not to validate email addresses by bluedino on Monday October 14, 2013 @03:50PM (#6549236)
Just because it's a valid address doesn't mean a real user is going to sign up for an account using a domain without a TLD.
Re:How not to validate email addresses by inthewind on Monday October 14, 2013 @05:21PM (#6549723)
Perhaps users are aware of relative domain names and addressing. You even see this on a service like gmail's login. A user with the address [email protected] doesn't have to enter '@gmail.com' when logging in - just 'example'. But actually either will do. Further it's not totally clear for a user what to enter here. Is a username/id is the same thing as an email address or not.

My aunt swears blind that an email address without the name in double quotes and the domainy bit is not a correct email address. She types the lot out.