邮箱存在验证

发布于 2024-09-16 11:52:04 字数 204 浏览 2 评论 0原文

是否可以检查电子邮件地址是否存在?

我之前听说可以通过“联系”电子邮件主机来实现这一点,但这可能是“危险的”,因为您的域名可能会被相应的电子邮件主机禁止并被视为垃圾邮件。

我的情况是,我想检查数据库中客户当前的电子邮件,并根据需要进行更新。

我有什么选择?

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终陌 2024-09-23 11:52:04

根据 email 地址本身,您可以检查域是否存在(DNS 方面)并具有 MX 记录。这是一种在输入电子邮件时粗略地检查人为错误的方法。你可能会抓住几个百分点。

如果您需要对所有用户/客户进行认真检查,并且这是强制性的,我看到的唯一解决方案是向他们发送一封邮件,要求他们单击链接以验证其帐户。

但您的邮件可能会被视为垃圾邮件/窃取信息的一种方式,并且许多用户可能害怕实际点击。因此,您的邮件必须精心设计,注明收件人的姓名(不太可能是垃圾邮件)以及您绝对需要他们帮助的原因。

AS per the email address itself, you can check that the domain exists (DNS wise) and has MX 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.

﹉夏雨初晴づ 2024-09-23 11:52:04

是的,在 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文