Class MailEnvironment

    • Field Detail

      • ADDRESS_SEPARATOR

        public static String ADDRESS_SEPARATOR
        The separator between email addresses. The default is a semi-colon.
      • blindCarbonCopy

        public List<String> blindCarbonCopy
      • contentType

        public String contentType
      • messageTemplate

        public String messageTemplate
      • password

        public String password
      • replyTo

        public String replyTo
      • server

        public String server
      • subjectTemplate

        public String subjectTemplate
      • mailEnabled

        public boolean mailEnabled
      • useSSL

        public boolean useSSL
      • port

        public int port
      • starttls

        public boolean starttls
      • username

        public String username
    • Constructor Detail

      • MailEnvironment

        public MailEnvironment()
      • MailEnvironment

        public MailEnvironment​(boolean mailEnabled)
      • MailEnvironment

        public MailEnvironment​(Map<String,​Object> map)
        Populate from a map
        Parameters:
        map -
    • Method Detail

      • setFrom

        public MailEnvironment setFrom​(String from)
                                throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setReplyTo

        public MailEnvironment setReplyTo​(String replyTo)
                                   throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setRecipients

        public MailEnvironment setRecipients​(String recipients)
                                      throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setRecipients

        public MailEnvironment setRecipients​(List<String> recipients)
                                      throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setCC

        public MailEnvironment setCC​(String cc)
                              throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setCC

        public MailEnvironment setCC​(List<String> cc)
                              throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setBCC

        public MailEnvironment setBCC​(String bcc)
                               throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setBCC

        public MailEnvironment setBCC​(List<String> bcc)
                               throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • update

        public void update​(MailEnvironment otherME)
        Take
        Parameters:
        otherME -
      • parseRecipients

        public List<String> parseRecipients​(String x)
                                     throws javax.mail.internet.AddressException
        Throws:
        javax.mail.internet.AddressException
      • setSSLProperties

        public int setSSLProperties​(Properties props)
        Configure a Properties object using the current environment, returning the port. This is for the option that useSSL is true.
        Parameters:
        props -
        Returns:
      • setTLSProperties

        public int setTLSProperties​(Properties props)
        Configure a Properties object using the current environment, returning the port. This is for the option that starttls is true.
        Parameters:
        props -
        Returns:
      • setSMTPProperties

        public int setSMTPProperties​(Properties props)
        Configure a Properties object using the current environment, returning the port. In this case, neither SSL nor TLS are used.
        Parameters:
        props -