public class MailClientAdapter extends java.lang.Object implements MailClient
Modifier and Type | Field and Description |
---|---|
static java.time.Duration |
OpTimeout |
Constructor and Description |
---|
MailClientAdapter(MailConfigSource config) |
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.
|
public MailClientAdapter(MailConfigSource config)
public void send(PlainTextMail data)
MailClient
send
in interface MailClient
data
- the message to send.public void stream(PlainTextMail data, java.io.OutputStream destination)
MailClient
stream
in interface MailClient
data
- the message to send.destination
- where to output the message.