如何在C#中检查现实世界中是否存在电子邮件地址 [英] How to check if email address exists in real world or not in C#
本文介绍了如何在C#中检查现实世界中是否存在电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过检查服务器上的记录来检查电子邮件的实际可用性
我尝试过的事情:
i试图连接到域的smtp服务器,但它无法处理批量邮件
I want to check the real availability of email by checking its records on server
What I have tried:
i have tried to connect to smtp server of domain but it can't handle bulk mails
推荐答案
通常,你不能至少不是以可靠的方式。
SMTP服务器往往禁止真实地址检查,这是一件好事,因为它使垃圾邮件制造者的生活变得更加困难。
您只能验证电子邮件地址格式正确。
此处已有很多问题,您可以快速搜索该主题的CP。
Usually, you cannot, at least not in a reliable way.
SMTP servers tend to prohibit real-address checking, and it is a good thing as it makes spammers' life much more difficult.
You can only validate that an email address is well-formed.
There are already numerous questions here about that, you could have a quick search on CP for that subject.
>
你无法检查它:主要是因为它可以阻止垃圾邮件发送者查找实时电子邮件地址并用垃圾进行地毯式轰炸。
你可以查看它是否是有效的电子邮件地址: Google [ ^ ]但是知道地址是否真实的唯一方法是向用户发送必须回复的电子邮件 - 这就是为什么许多注册系统需要电子邮件确认。
You can't check it: mostly because it prevents spammers from finding live email addresses and carpet bombing them with rubbish.
You can check if it's a valid email address: Google[^] but the opnly way to know if an address is "real" is to send it an email that the user must respond to - that is why many registration systems require an "email confirmation".
这篇关于如何在C#中检查现实世界中是否存在电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文