验证电子邮件地址存在性的python电子邮件实用程序
python-emailaho的Python项目详细描述
= Python EMAAHOYY=BR/>< Bython电子邮件实用程序,验证电子邮件地址的存在。BR/> BR/>作者:“Val Neekman & LT;Val@ NeeKeave.com。”< BR/> BR/>引言:
BR/>用法示例:
-
BR/>从EMAAHOHY导入验证电子邮件,verify_email_address
# to verify and receive the response status use the class
##############################################
e = VerifyEmail()
status = e.verify_email_smtp('test@example.com')
if e.was_found(status):
print >> sys.stderr, "Found:", status
elif e.not_found(status):
print >> sys.stderr, "Not Found:", status
else:
print >> sys.stderr, "Unverifiable:", status
# to just quickly check if an email exist or not use the shorthand function
##############################################
if verify_email_address('test@example.com'):
print >> sys.stderr, "Found"
else:
print >> sys.stderr, "Not found"
# Note:
##############################################
If email is valid, this returns within a second
If email is not valid or unverifiable, it can take up to 5 seconds
BR/>用法示例:
-
BR/>从EMAAHOHY导入验证电子邮件,verify_email_address
# to verify and receive the response status use the class
##############################################
e = VerifyEmail()
status = e.verify_email_smtp('test@example.com')
if e.was_found(status):
print >> sys.stderr, "Found:", status
elif e.not_found(status):
print >> sys.stderr, "Not Found:", status
else:
print >> sys.stderr, "Unverifiable:", status
# to just quickly check if an email exist or not use the shorthand function
##############################################
if verify_email_address('test@example.com'):
print >> sys.stderr, "Found"
else:
print >> sys.stderr, "Not found"
# Note:
##############################################
If email is valid, this returns within a second
If email is not valid or unverifiable, it can take up to 5 seconds