Digital Marketing

How to validate Email Address using Apache EmailValidator

EmailValidator.getInstance().isValid(email)
EmailValidator from package org.apache.commons.validator.EmailValidator is deprecated, use package org.apache.commons.validator.routines.EmailValidator instead.

<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.5.1</version>
<type>jar</type>
</dependency>

Comments

Popular posts from this blog

Make online money from the Internet