Email validation in Java
16 comments
January 24th, 2007
Validating the mail very effectively, is little difficult. Most of the programers will search for a code for this to make their work easier. Here is a simple code for validating your email in Java. It is using the apache.commons-validator jar and oro-gump-18012007.jar.
// Code email validation
public static boolean validateEmailAddress(String sEmail){
EmailValidator emailValidator = EmailValidator.getInstance();
return emailValidator.isValid(sEmail);
}
We can do the email validation using regx. This is another way of doing it effectively. If this post helped you then please leave one comment here ![]()
Downloads : apache.commons-validator.jar, oro-gump-18012007.jar
Technorati tags: Email validation
Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkListPopularity: 21% [?]