Class MailValidation

  • public class MailValidation
    extends Object
    • Constructor Detail

      • MailValidation

        public MailValidation()
    • 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
      • 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 :
        email - address
        sender - email address
        default - SMTP Server
        timeout - for socket connection
        deepCheck - (if we want to perform a SMTP check
        true or false