如何验证c sharp中的电子邮件地址。 [英] How to verify the email address in c sharp.

查看:125
本文介绍了如何验证c sharp中的电子邮件地址。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意我不想验证电子邮件。相反,我想检查电子邮件地址是否确实存在。有一些api可用,但我不想使用它们。请显示真正有用的示例代码。

Please note I don't want to validate email. Instead I wanna check whether an email address does exists in real or not. There are certain api available but I don't want to use them. Please show the sample code that would be really helpful.

推荐答案

在实践中你不能做的就是发送电子邮件,看看你是否得到了直播用户的回复。如果你这样做,那就行了。



如果你不......他可能还没看,它可能是一个不受监控的电子邮件地址,它可以是一个自动删除的电子邮件(我有几个在商店坚持时使用的:所有邮件在到达时自动删除),它可能是一个有效的电子邮件域,没有用户注册到本地部分。



这取决于另一端的电子邮件系统及其配置方式。

为什么?简单:防止垃圾邮件。如果您可以在没有回复的情况下检测到有效的电子邮件,那么垃圾邮件发送者可以用垃圾淹没它......
You can't, in practice: all you can do is send an email and see if you get a response from a "live" user. If you do, it works.

If you don't...he could be not looking yet, it could be a "unmonitored" email address, it could be an autodelete email (I have a couple of those to use when shops insist: all mail is automatically deleted when it arrives), it could be a valid email domain with no user registered to the local part.

It depends on the email system on the other end, and how it is configured.
Why? Simple: to prevent spam. If you can detect "valid emails" without a response, spammers can flood it with rubbish...


这篇关于如何验证c sharp中的电子邮件地址。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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