Groovy web console

subscribe to the feed Subscribe
to this
site
Email validation with InternetAddress (via #groovywebconsole)
tweet this snippet Tweet
this
script

Email validation with InternetAddress

Published 2 weeks ago by DP with tags java email-validation
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import javax.mail.internet.InternetAddress;

new InternetAddress("justsomestring", true).validate()

System.out.println("passed");