如何检查C#.net中是否存在电子邮件?

编程入门 行业动态 更新时间:2024-10-26 20:21:05
本文介绍了如何检查C#中是否存在电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

推荐答案

不,你不能这样做。关于为什么会这里有一个很好的解释, http:/ /stackoverflow/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, stackoverflow/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中是否存在电子邮件?

本文发布于:2023-11-10 02:59:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574160.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是否存在   电子邮件   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!