3 ms·
There's characters missing[1] and the tld is too short[2]. And even if that's fixed, we still don't match internationalized addresses or actually validate that
by subsystem 14y ago
There's characters missing[1] and the tld is too short[2]. And even if that's fixed, we still don't match internationalized addresses or actually validate that the e-mail address exists. You're probably better off with something like...
if "@" in email and "." in email.split("@")[1]:
send_verification(email)
...but you should probably also check for common misspellings like "gmial.com" etc.
[1] http://en.wikipedia.org/wiki/Email_address#Syntax http://en.wikipedia.org/wiki/Email_address#Syntax
[2] http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains http://en.wikipedia.org/wiki/List_of_Internet_top-level_doma...