验证电子邮件地址存在性的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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Spring、JPA和hibernate的java问题   如何将JMC(Java任务控制)连接到ubuntu中的远程JVM?   java如何将eventListener的结果存储为对象?   java在安卓中,点击一个按钮,我如何停止发送循环中发送的消息   java打开活动中的电子邮件   使用velocity模板打印JasperReports   java无法在自定义信息窗口上拨号   java如何在jsonb postgresql中查询并转换为谓词JPA   java更好地理解J2EE环境中的异常和日志记录   java打印多个文件   java无法使用API v2 Foreman 1.7.1创建主机   HTML单一提交类型按钮在java中不起作用   java调用静态方法的实例   ViewPage中替换片段的java问题   C++在java中创建数组(2D)而不初始化内部数组   java如何在NetBeans中同时更改变量名称的多个实例?   如何完成这个关于集合的java程序   java如何选择使用selenium从下拉菜单动态生成的元素?