邮箱存在验证
是否可以检查电子邮件地址是否存在?
我之前听说可以通过“联系”电子邮件主机来实现这一点,但这可能是“危险的”,因为您的域名可能会被相应的电子邮件主机禁止并被视为垃圾邮件。
我的情况是,我想检查数据库中客户当前的电子邮件,并根据需要进行更新。
我有什么选择?
我正在使用 ASP.NET 和 MVC。
谢谢,迈克尔。
Is it possible to check if an email-address is existing?
I have earlier heard that it was possible through "contacting" the email-host, but it could be "dangerous" because your domain could be banned by the respective email-host an treated as spam.
My scenario is that i would like to check customers current email in the db, and update if needed.
What option do i have?
I'm using ASP.NET with MVC.
Thanks, Michael.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据
email
地址本身,您可以检查域是否存在(DNS 方面)并具有MX
记录。这是一种在输入电子邮件时粗略地检查人为错误的方法。你可能会抓住几个百分点。如果您需要对所有用户/客户进行认真检查,并且这是强制性的,我看到的唯一解决方案是向他们发送一封邮件,要求他们单击链接以验证其帐户。
但您的邮件可能会被视为垃圾邮件/窃取信息的一种方式,并且许多用户可能害怕实际
点击
。因此,您的邮件必须精心设计,注明收件人的姓名(不太可能是垃圾邮件)以及您绝对需要他们帮助的原因。AS per the
email
address itself, you can check that the domain exists (DNS wise) and hasMX
records. This is a way to check - roughly - the human mistakes while inputing the email in the first place. You may catch a few percents.If you need a serious check of all the users/clients, and this is mandatory, the only solution I see is to send them a mail asking them to click a link in order to validate their account.
But your mail may be taken for spam / a way to steal information, and many users may be afraid to actually
click
. So your mail must be carefully constructed, indicating the name and firstname of the person (less likely to be spam) and the reason why you need absolutely some help from their side.是的,在 SMTP 中,您可以解析收件人域的 MX 记录,然后联系给定服务器并执行 RCPT TO: - 服务器将确认/拒绝收件人是否存在(假设服务器将拒绝 RELAY 并且服务器不会捕获所有)
Yes, in SMTP you can resolve MX record for the recipients domain and then contact the given server and do a RCPT TO: - the server will then confirm / deny whether the recipient exists (assuming that the server will refuse to RELAY and that the server won't do catch all)