public class EmailDaemon extends java.lang.Object implements RemoteEmailSender
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
modToken
Token used to authenticate with the dispatcher when registering APIs.
|
| Constructor and Description |
|---|
EmailDaemon(boolean local)
Create an instance and export its API to the network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
send(EmailDefinition def)
Send the email.
|
private static java.lang.Object modToken
public EmailDaemon(boolean local)
local - true to register purely on a local basis (no remote/network access to these
methods).public void send(EmailDefinition def) throws org.apache.commons.mail.EmailException, java.net.MalformedURLException
send in interface RemoteEmailSenderdef - Container which stores all the state and configuration needed to send the email.org.apache.commons.mail.EmailExceptionjava.net.MalformedURLException