public interface MailClient
| Modifier and Type | Method and Description |
|---|---|
void |
send(PlainTextMail data)
Relays a mail message to a server.
|
void |
stream(PlainTextMail data,
java.io.OutputStream destination)
Writes a mail message to the given stream.
|
void send(PlainTextMail data)
data - the message to send.java.lang.NullPointerException - if the argument is null.MailClientException - if a sending error occurs.void stream(PlainTextMail data, java.io.OutputStream destination)
data - the message to send.destination - where to output the message.java.lang.NullPointerException - if any argument is null.MailClientException - if an I/O or MIME message error occurs.