如何检查C#.net中是否存在电子邮件? [英] how to check the existence of the email in C#.net?

查看:59
本文介绍了如何检查C#.net中是否存在电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查C#.net windows中的电子邮件存在形式应用程序示例test@gmail.com这种类型的存在想要检查????任何人都可以帮我解决这个问题

I want to check the email existance in C#.net windows form application example test@gmail.com this type of existance in want to check????Can anyone help me to resolve this problem

推荐答案

不,你不能这样做。关于为什么会这里有一个很好的解释, http:/ /stackoverflow.com/questions/3883518/can-i-check-if-an-email-address-exists-using-net [ ^ ]



基本上,如果电子邮件有效,你不能要求电子邮件服务器。
No, you cannot do it. A good explanation as to why is here, http://stackoverflow.com/questions/3883518/can-i-check-if-an-email-address-exists-using-net[^]

Essentially, you can't ask an email server if the email is valid.


在发送邮件并收到一些回复之前,这是不可能的。这不是邮件系统的工作方式。您可以发送请求送达确认的邮件,它可能会也可能不会。如果主机上的邮件地址不存在,某些主机会给您自动响应,但很少配置邮件,因为它可以简化垃圾邮件发送者的工作。所以,你没有什么可以依赖的。



-SA
It is impossible, until you send a message and receive some response. This is not how mail system works. You can send a mail requesting delivery confirmation, it may or may not work. Some hosts will give you automatic response if the mail address on their host does not exist, but mail is rarely configured that way as it could simplify the work of the spammers. So, there is nothing you could rely on.

—SA


这篇关于如何检查C#.net中是否存在电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆