Hacker News new | ask | show | jobs
by asuth 5198 days ago
Just doing DNS checks might not be enough:

`$ dig hotnail.com MX` yields results but is still invalid.

1 comments

Well, technically, it's valid; it's just unlikely to be what you meant to type. That sort of case should probably be handled separately.
Well worth noting: auto-correcting the email addresses would be a very bad idea; ditto for stopping them from submitting the form if this is triggered.

But just showing a little note "are you sure you didn't mean username@gmail.com", then letting them submit anyway, isn't generally annoying even for misfires.

Because there actually are going to be occasional users who mistype "ymail.com" when they mean gmail. Hey, thanks for the warning; the y is right near the g.