Class MailValidation
- java.lang.Object
-
- org.pentaho.di.trans.steps.mailvalidator.MailValidation
-
public class MailValidation extends Object
-
-
Constructor Summary
Constructors Constructor Description MailValidation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.htmlstatic boolean
isRegExValid(String emailAdress)
static int
mailServersCount(String hostName)
verify if there is a mail server registered to the domain name.
-
-
-
Method Detail
-
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(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- Parameters:
email
- addresssender
- email addressdefault
- SMTP Servertimeout
- for socket connectiondeepCheck
- (if we want to perform a SMTP check- Returns:
- true or false
-
-