Class CmsMailUtil


  • public final class CmsMailUtil
    extends java.lang.Object
    Contains utility methods for dealing with emails.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SECURITY_SSL
      Value for 'security' attribute to enable SSL.
      static java.lang.String SECURITY_STARTTLS
      Value for 'security' attribute to enable TLS.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void configureMail​(CmsMailHost host, org.apache.commons.mail.Email mail)
      Configures the mail from the given mail host configuration data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • configureMail

        public static void configureMail​(CmsMailHost host,
                                         org.apache.commons.mail.Email mail)
        Configures the mail from the given mail host configuration data.

        Parameters:
        host - the mail host configuration
        mail - the email instance