You can use lepl to check if the given E-Mail format is correct for the time being according to the RFC 3696 method.
pip install lepl
import lepl.apps.rfc3696
email_validator = lepl.apps.rfc3696.Email()
if email_validator("[email protected]"):
print "OK"
From StackOverflow However, if the e-mail address is not correctly RFC compliant, such as DoCoMo, such as consecutive periods, it may be False. True returned that there was only one period before @.
Recommended Posts