public class MailValidation extends Object
| 构造器和说明 |
|---|
MailValidation() |
| 限定符和类型 | 方法和说明 |
|---|---|
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. and return the email servers count
|
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 checkCopyright © 2024 Hitachi Vantara. All rights reserved.