【发布时间】:2014-01-31 20:32:12
【问题描述】:
我在 python 中使用了 validate_email 模块来检查我的 Web 应用程序是否存在用户的电子邮件 ID。 但它总是返回 True。
这是我的代码
from validate_email import validate_email
is_valid = validate_email('example@example.com',check_mx=True) #Checking if the host has SMPT Server
然后我尝试了
from validate_email import validate_email
is_valid = validate_email('example@example.com',verify=True) # Checking if the host has SMPT Server and the email really exists
【问题讨论】:
标签: python