什么是最好的 Java 电子邮件地址验证方法? [英] What is the best Java email address validation method?
问题描述
Java 有哪些好的电子邮件地址验证库?是否有任何替代 commons验证器?
What are the good email address validation libraries for Java? Are there any alternatives to commons validator?
推荐答案
Apache Commons 通常被认为是一个可靠的项目.不过请记住,如果您想确保这是一封真实的电子邮件,并且所有者希望在您的网站上使用它,您仍然需要向该地址发送一封验证电子邮件.
Apache Commons is generally known as a solid project. Keep in mind, though, you'll still have to send a verification email to the address if you want to ensure it's a real email, and that the owner wants it used on your site.
编辑:有一个错误,其中它对域的限制太多,导致它不接受来自新 TLD 的有效电子邮件.
EDIT: There was a bug where it was too restrictive on domain, causing it to not accept valid emails from new TLDs.
此错误已于 03/Jan/15 02:48 在 commons-validator 版本 1.4.1
This bug was resolved on 03/Jan/15 02:48 in commons-validator version 1.4.1
这篇关于什么是最好的 Java 电子邮件地址验证方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!