| java.lang.Object org.opencms.mail.CmsMailSettings
CmsMailSettings | public class CmsMailSettings (Code) | | Contains the settings for the OpenCms mail service.
author: Alexander Kandzior version: $Revision: 1.12 $ since: 6.0.0 |
MAIL_DEFAULT_PROTOCOL | final public static String MAIL_DEFAULT_PROTOCOL(Code) | | The default protocol for sending mail ("smtp").
|
MAIL_DEFAULT_SENDER | final public static String MAIL_DEFAULT_SENDER(Code) | | The default mail from address.
|
CmsMailSettings | public CmsMailSettings()(Code) | | Empty constructor, required for configuration.
|
addMailHost | public void addMailHost(String hostname, String order, String protocol, String username, String password)(Code) | | Adds a new mail host to the internal list of mail hosts.
Parameters: hostname - the name of the mail host Parameters: order - the order in which the host is tried Parameters: protocol - the protocol to use (default "smtp") Parameters: username - the user name to use for authentication Parameters: password - the password to use for authentication |
getDefaultMailHost | public CmsMailHost getDefaultMailHost()(Code) | | Returns the default mail host.
the default mail host |
getMailFromDefault | public String getMailFromDefault()(Code) | | Returns the mail from default sender.
the mail from default sender |
getMailHosts | public List getMailHosts()(Code) | | Returns an unmodifiable sorted list of all configured mail hosts.
an unmodifiable sorted list of all configured mail hosts |
setMailFromDefault | public void setMailFromDefault(String sender)(Code) | | Sets the mail from default sender.
Parameters: sender - the mail from default sender to set |
|
|