MailConnector¶
-
public abstract class
MailConnector
¶ MailConnector is an abstract connector for making connection to mail hosts. The configuration of mail connector is mainly through the standard java properties injection. You can always use either
addProperties(Properties)
orgetProperties()
to set or get the current configuration of this mail connector. For the detail of the properties key, read here 1.0.1 - Add help method for enabling black box debug mode throughsetDebug(boolean)
Author: Hugo Y. K. Lam,, Twinsen Tsang (modifers)
Methods¶
addProperties¶
-
public void
addProperties
(Properties properties)¶ Adds the given mail properties to the underlying mail properties used by this connector.
Parameters: - properties – the properties to be added.
addProperty¶
createSession¶
getHost¶
getProperties¶
-
public Properties
getProperties
()¶ Gets the underlying mail properties used by this connector.
Returns: the mail properties.