|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.mail.CmsMailSettings
public class CmsMailSettings
Contains the settings for the OpenCms mail service.
| Field Summary | |
|---|---|
static String |
MAIL_DEFAULT_PROTOCOL
The default protocol for sending mail ("smtp"). |
static String |
MAIL_DEFAULT_SENDER
The default mail from address. |
| Constructor Summary | |
|---|---|
CmsMailSettings()
Empty constructor, required for configuration. |
|
| Method Summary | |
|---|---|
void |
addMailHost(String hostname,
String order,
String protocol,
String username,
String password)
Adds a new mail host to the internal list of mail hosts with default port 25. |
void |
addMailHost(String hostname,
String port,
String order,
String protocol,
String username,
String password)
Adds a new mail host to the internal list of mail hosts. |
CmsMailHost |
getDefaultMailHost()
Returns the default mail host. |
String |
getMailFromDefault()
Returns the mail from default sender. |
List<CmsMailHost> |
getMailHosts()
Returns an unmodifiable sorted list of all configured mail hosts. |
void |
setMailFromDefault(String sender)
Sets the mail from default sender. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MAIL_DEFAULT_PROTOCOL
public static final String MAIL_DEFAULT_SENDER
| Constructor Detail |
|---|
public CmsMailSettings()
| Method Detail |
|---|
public void addMailHost(String hostname,
String order,
String protocol,
String username,
String password)
hostname - the name of the mail hostorder - the order in which the host is triedprotocol - the protocol to use (default "smtp")username - the user name to use for authenticationpassword - the password to use for authentication
public void addMailHost(String hostname,
String port,
String order,
String protocol,
String username,
String password)
hostname - the name of the mail hostport - the port of the mail hostorder - the order in which the host is triedprotocol - the protocol to use (default "smtp")username - the user name to use for authenticationpassword - the password to use for authenticationpublic CmsMailHost getDefaultMailHost()
public String getMailFromDefault()
public List<CmsMailHost> getMailHosts()
public void setMailFromDefault(String sender)
sender - the mail from default sender to setpublic String toString()
toString in class ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||