确定电子邮件地址的健康/有效期 [英] Determining the health/validity of an email address

查看:248
本文介绍了确定电子邮件地址的健康/有效期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

日常维护一个网站上经常涉及到验证环节是有效的,标记坏的,等等。

Routine maintenance on a website often involves verifying that links are valid, flagging bad ones, etc.

我知道如何通过脚本匹配的电子邮件地址(尤其是在网页的背景下,他们会在的mailto:链接)。我的问题是如何将我验证他们确定没有垃圾邮件地址?

I know how to match email addresses via a script (especially in the context of a web page where they'd be in mailto: links). My question is how would I verify they're OK without spamming the address?

剥线断域和验证它监听端口25是一个局部的答案,但不处理验证用户名/别名。

Stripping-off the domain and verifying it's listening on port 25 is a partial answer, but doesn't handle verifying the username/alias.

有没有办法把它添加到我的维护脚本的网站,我管理?

Is there a way to add this to my maintenance scripts for websites I manage?

我真的不关心什么语言它用,只要它的工作原理:)

I don't really care what language it's written in, so long as it works :)

推荐答案

同意<一个href="http://stackoverflow.com/questions/504631/determining-the-health-validity-of-an-email-address/504674#504674">Jay: 所有建做这份工作的漂亮的功能一般都关闭......

Agree with Jay: All the nifty features built to do this particular job are generally turned off...

的唯一方法是发送电子邮件到该地址;即使这样,你是不是100%肯定。

The only way is sending an email to that address; and even then, you're not 100% sure.

  • 在该地址可以被垃圾;没有人检查它。
  • 在邮箱已满(暂时?),你会得到一个DSN
  • 在SMTP服务器故障/中断

恕我直言,继续检查域(去容易的连接,如果你不想让黑名单)和类似的Akismet / Spamhaus的反垃圾邮件工具来过滤用户subsmissions。

IMHO, keep checking the domain (go easy on connections if you don't want to get blacklisted) and antispam tools like akismet/spamhaus to filter user subsmissions.

这篇关于确定电子邮件地址的健康/有效期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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