org.pentaho.di.trans.steps.mailvalidator
Class MailValidation
java.lang.Object
org.pentaho.di.trans.steps.mailvalidator.MailValidation
public class MailValidation
- extends Object
MailValidation
public MailValidation()
isRegExValid
public static boolean isRegExValid(String emailAdress)
mailServersCount
public static int mailServersCount(String hostName)
throws NamingException
- verify if there is a mail server registered to the domain name.
and return the email servers count
- Throws:
NamingException
isAddressValid
public static MailValidationResult isAddressValid(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
- Parameters:
email
- addresssender
- email addressdefault
- SMTP Servertimeout
- for socket connectiondeepCheck
- (if we want to perform a SMTP check
- Returns:
- true or false