4 ms·
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
by bluedino 13y ago
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...
- swanson 13y agoYep - that JS library will take care of that as well: https://github.com/Kicksend/mailcheck/blob/master/src/mailcheck.js#L18 https://github.com/Kicksend/mailcheck/blob/master/src/mailch... "hotnail.con" -> "hotmail.com"
- inthewind 13y agoIsn't this pointless with the wholesale of TLDs?
- inthewind 13y agoAlso 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.
- bluedino 13y agoJust 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.
- inthewind 13y agoPerhaps 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 example@gmail.com 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.
- dfox 13y agoIt'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?
- inthewind 13y agoPerhaps I do operate it. Can be very useful on say a dev box.
- inthewind 13y agoReading 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).