【发布时间】:2011-05-28 12:17:12
【问题描述】:
我想知道每个人在验证电子邮件地址方面都在做什么,以及验证需要多广泛。
例如,在这些方法中,首选哪一种?为什么?
- 全面检查:http://www.linuxjournal.com/article/9585?page=0,3
- PHP 过滤器:http://php.net/manual/en/filter.filters.validate.php
- 艾瑞吉:http://www.totallyphp.co.uk/code/validate_an_email_address_using_regular_expressions.htm
- 预匹配与 DNS 检查:http://www.soaptray.com/blog/2008/04/validate-email-addresses-using-php/
我的目标是为普通项目找到一个好的、可靠的解决方案,因此在验证电子邮件地址时,我确切地知道我将要使用什么。
非常感谢任何反馈!
-瑞恩
【问题讨论】:
标签: php validation email