public class MailValidation extends Object
| Constructor and Description | 
|---|
| MailValidation() | 
| Modifier and Type | Method and Description | 
|---|---|
| static MailValidationResult | isAddressValid(org.pentaho.di.core.logging.LogChannelInterface log,
              String address,
              String senderAddress,
              String defaultSMTPServer,
              int timeout,
              boolean deepCheck)Validate an email address This code is from : http://www.rgagnon.com/javadetails/java-0452.html | 
| static boolean | isRegExValid(String emailAdress) | 
| static int | mailServersCount(String hostName)verify if there is a mail server registered to the domain name. | 
public static boolean isRegExValid(String emailAdress)
public static int mailServersCount(String hostName) throws NamingException
NamingExceptionpublic static MailValidationResult isAddressValid(org.pentaho.di.core.logging.LogChannelInterface log, String address, String senderAddress, String defaultSMTPServer, int timeout, boolean deepCheck)
email - addresssender - email addressdefault - SMTP Servertimeout - for socket connectiondeepCheck - (if we want to perform a SMTP check