public interface EmailTransport
EmailTransport defines the interface for classes that can send EmailMessage objects.
EmailMessage
Modifier and Type | Method and Description |
---|---|
void |
send(EmailMessage message)
Send an EmailMessage.
|
void |
setDebug(boolean debug,
java.io.PrintStream out)
Enable or disable the underlying implementation's debug flag, if
there is one.
|
void send(EmailMessage message) throws EmailException
message
- the message to sendEmailException
- failed to send messagevoid setDebug(boolean debug, java.io.PrintStream out)
debug
- true to enable debug, false to
disable itout
- where to dump debug messages, or null for standard
output. Ignored unless debug is true.