当前位置: 技术问答>java相关
怎么进行email地址的检查?
来源: 互联网 发布时间:2017-03-08
本文导语: 怎么进行email地址的检查? 检查email地址 是否合法。 | import com.jscape.inspect.EmailInspector; import com.jscape.inspect.InvalidEmailException; EmailInspector inspector = new EmailInspector(); inspector.setEmai...
怎么进行email地址的检查? 检查email地址 是否合法。
|
import com.jscape.inspect.EmailInspector;
import com.jscape.inspect.InvalidEmailException;
EmailInspector inspector = new EmailInspector();
inspector.setEmailInspectionLevel(EmailInspector.USER_VALIDATION);
inspector.setNameserver(res_mailtester.getString("NameServer"));
import com.jscape.inspect.InvalidEmailException;
EmailInspector inspector = new EmailInspector();
inspector.setEmailInspectionLevel(EmailInspector.USER_VALIDATION);
inspector.setNameserver(res_mailtester.getString("NameServer"));
|
inspector.validate(mailto);