public interface MailTransport
Modifier and Type | Method and Description |
---|---|
Mail |
createMail()
Creates and returns a new
Mail . |
String |
getMailAsString(Mail mail)
|
boolean |
isDisableSend()
Checks whether this
MailTransport is disabled. |
void |
send(Mail mail)
Send the given
Mail . |
void |
setDisableSend(boolean disableSend)
Enable/disable sending for this
MailTransport . |
void send(Mail mail) throws MailException
Mail
.mail
- the Mail
to sendMailException
- if an error occurs while sending the Mail
boolean isDisableSend()
MailTransport
is disabled.true
if this MailTransport
is disabled, false
otherwise.void setDisableSend(boolean disableSend)
MailTransport
. If set to true
, Mail
s will be logged
instead of being send.disableSend
- Copyright © 2011–2017 aiticon GmbH. All rights reserved.