什么是最好的Java电子邮件地址验证方法? [英] What is the best Java email address validation method?

查看:148
本文介绍了什么是最好的Java电子邮件地址验证方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Java的好的电子邮件地址验证库?是否有任何替代方案共同体验证器

解决方案

Apache Commons通常被称为一个坚实的项目。不过请注意,如果您想要确保它是真正的电子邮件,并且所有者希望在您的网站上使用,您仍然必须向该地址发送验证电子邮件。


编辑:有一个错误在域上太限制,导致其不接受来自新TLD的有效电子邮件。



此错误已于03年1月3日解决/ 15 02:48 in commons-validator 版本1.4.1



What are the good email address validation libraries for Java? Are there any alternatives to commons validator?

解决方案

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.

EDIT: There was a bug where it was too restrictive on domain, causing it to not accept valid emails from new TLDs.

This bug was resolved on 03/Jan/15 02:48 in commons-validator version 1.4.1

这篇关于什么是最好的Java电子邮件地址验证方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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