syrusakbary / validate_email

Validate_email verify if an email address is valid and really exists
Other
578 stars 232 forks source link

hotmailcom is valid email? #93

Open RenzoGamero opened 5 years ago

RenzoGamero commented 5 years ago

example@hotmailcom is a valid email

tvdsluijs commented 5 years ago

I have a same problem. It looks like while you have [string]@[string] is thinks it's a valid email address:

So, theo@name is valid, hello@bye is also valid.....

plyd commented 5 years ago

it is valid according to the RFC. "hotmailcom" could be a valid tld, and tld are ok. Nevertheless, the DNS check fails because the domain does not exist. You should use option check_mx (need package py3dns).

validate_email.validate_email("example@hotmailcom") True validate_email.validate_email("example@hotmailcom", check_mx=True) False