6 ms·
Just doing DNS checks might not be enough: `$ dig hotnail.com MX` yields results but is still invalid.
by asuth 15y ago
Just doing DNS checks might not be enough:
`$ dig hotnail.com MX`
yields results but is still invalid.
- Zarel 15y agoWell, technically, it's valid; it's just unlikely to be what you meant to type. That sort of case should probably be handled separately.
- jtheory 15y agoWell 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.