寻找免费的电子邮件地址验证Web服务或代码 [英] Looking for Free eMail Address Verification Web Service or Code

查看:153
本文介绍了寻找免费的电子邮件地址验证Web服务或代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨CPians,

我试图找到一个免费的Web服务,可以通过它以编程方式验证电子邮件地址,或者找到一些C#代码,这些代码可以让我自己执行.

我找到了一些不错的网站,它们可以为您执行完整的验证(语法,域,邮箱),但只能以交互在线方式进行.似乎有少数网站曾经将其作为免费Web服务提供此功能,现在正转向付费服务,这是可以理解的.

我会很乐意自己写点东西,但我想大声疾呼,看看CP内是否有人在我自己动手之前就已经解决了这个问题-在这里进行初步搜索并没有引起我的注意,所以如果我错过了一篇相关的文章,请和我一起裸露. :)

Hi CPians,

I''m trying to find either a free web service with which I can validate eMail addresses programatically or some C# code that will allow me to do it myself.

I''ve found a few good sites that will perform the full verification (syntax, domain, mailbox) for you but only in an interactive online fashion. Looks like the few sites that used to offer this functionality as a free web service are now moving towards paid services, which is understandable.

I would be just as happy writing something myself but I wanted to shout-out to see if anybody in CP has already tackled this somewhere before I embark on my own - a preliminary search here didn''t pull up anything that grabbed my attention so please bare with me if I missed a relevant article. :)

推荐答案

没有具体答案,但是就语法验证而言,您可以使用正则表达式.您无需在网上就可以找到很多东西.要验证电子邮件地址是真实的,您可以连接到处理该帐户的SMTP服务器.使用MX查找来确定服务器,然后查看SMTP协议,基本上,您需要发送MAIL FROM:RCPT TO:命令,并确保服务器不会抱怨未知用户.

再次,我没看过,但我确定您可以在网上找到有关此内容的信息.
No specific answers, but in terms of syntax validation you can use regular expressions. You won''t have to look far on the net to find stuff on this. To validate the email address is actually real, you can connect to the SMTP server which handles the account. Use an MX lookup to determine the server then look at the SMTP protocol, you basically need to send MAIL FROM: RCPT TO: commands and make sure the server doesn''t complain about an unknown user.

Again, I haven''t looked but I''m sure you can find stuff for this on the net.


这篇关于寻找免费的电子邮件地址验证Web服务或代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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