@ThreadRestricted public final class MailSender extends Object
Constructor and Description |
---|
MailSender(SMTPTransportX.ConstructionContext cc)
Constructs a MailSender.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MailSender(SMTPTransportX.ConstructionContext cc) throws MisconfigurationException
MisconfigurationException
public boolean isDryRun()
setDryRun(boolean)
public final void setDryRun(boolean newDryRun)
isDryRun()