Class CmsMailHost

java.lang.Object
org.opencms.mail.CmsMailHost
All Implemented Interfaces:
Comparable<CmsMailHost>

public class CmsMailHost extends Object implements Comparable<CmsMailHost>
Contains the configuration of an individual mail host.

Since:
6.0.0
  • Constructor Details

    • CmsMailHost

      public CmsMailHost(String hostname, Integer port, Integer order, String protocol, String security, String username, String password)
      Creates a new mail host.

      Parameters:
      hostname - the name of the mail host
      port - the port, if < 0 then 25 is used
      order - the order in which the host is tried
      protocol - the protocol to use (default "smtp")
      security - the security setting
      username - the user name to use for authentication
      password - the password to use for authentication
    • CmsMailHost

      public CmsMailHost(String hostname, Integer port, Integer order, String protocol, String security, String username, String password, String id, String mailfrom)
      Creates a new mail host.

      Parameters:
      hostname - the name of the mail host
      port - the port, if < 0 then 25 is used
      order - the order in which the host is tried
      protocol - the protocol to use (default "smtp")
      security - the security setting
      username - the user name to use for authentication
      password - the password to use for authentication
      id - the id of the mail host
      mailfrom - the mail-from address of the mail host
  • Method Details