|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectMailSender
@ThreadRestricted public final class MailSender
A sender of messages, with access to an SMTP mail transfer service.
| Constructor Summary | |
|---|---|
MailSender(SMTPTransportX.ConfigurationContext cc)
Constructs a MailSender. |
|
| Method Summary | |
|---|---|
boolean |
isDryRun()
Returns true if this mail sender is to run without actually sending any mail; while doing everything else, as far as possible. |
void |
setDryRun(boolean newDryRun)
Sets whether the mail sender is to run without actually sending any mail. |
Exception |
trySend(Message message,
Session session)
Attempts to send a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailSender(SMTPTransportX.ConfigurationContext cc)
throws MisconfigurationException
MisconfigurationException| Method Detail |
|---|
public boolean isDryRun()
setDryRun(boolean)public final void setDryRun(boolean newDryRun)
isDryRun()
public Exception trySend(Message message,
Session session)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||