不涉及用户交互的最通用的电子邮件验证方法是什么?
众所周知,实现这一目标的最佳方法可能是与 MX 服务器进行 SMTP 事务,在此期间我们“模拟”发送邮件(HELO、MAIL FROM、RCPT TO - 250 对 rcpt to = 电子邮件的响应是好的)。
它工作得很好,但是许多服务器(例如 Hotmail、MSN)将像这样进行通信的主机列入黑名单(在不发送电子邮件的情况下开始事务)。
有没有更好的方法来验证电子邮件是否存在 - 无需用户交互,如果可能 - 无需发送消息?
It's widely known, that probably the best method to achieve that is the SMTP transaction with the MX server during which we're "emulating" sending the mail (HELO, MAIL FROM, RCPT TO - 250 response to rcpt to = e-mail is OK).
It works good, however many servers (e.g. Hotmail, MSN) are black-listing the hosts which are communicating like that (starting transaction without sending the e-mail).
Is there any better method to verify that e-mail exists - without user interaction and, if possible - without sending a message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,任何帮助合法应用程序确定电子邮件帐户是否真实且活跃的东西都可能被寻找真实帐户的垃圾邮件发送者所利用。
您最好的选择是(假设用户正在您的网站上注册)...向他们发送一封电子邮件,其中包含链接(或代码),他们单击(或输入)以“验证”这是一个真实帐户。
注意:即使这样做,也只能“保证”帐户处于活动状态。它不能确保它不是临时服务(例如邮寄者或其他一次性电子邮件地址)。 ;-)
Unfortunately anything that helps legitimate apps determine if an email account is real and active are exploitable by spammers that are looking for live accounts.
Your best bet is (presuming a user is signing up on your site)... is to send them an email with a link (or code) that they click on (or type in) to "verify" this is a real account.
Note: Even doing this, only "guarantees" the account was active. It doesn't ensure that it wasn't a temporary service (e.g. mailinator or other disposable email address). ;-)