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(Session session,
boolean single)
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(Session session, boolean single)
session
- The server session to get the properties.single
- true
to startup within the server process which must bypass the
shared infrastructure initialization. Use false
for the normal
client JVM startup.public void send(EmailDefinition def) throws org.apache.commons.mail.EmailException, java.net.MalformedURLException
send
in interface RemoteEmailSender
def
- Container which stores all the state and configuration needed to send the email.org.apache.commons.mail.EmailException
java.net.MalformedURLException