Package | Description |
---|---|
com.hubspot.smtp.client |
This package contains classes to create and maintain connections to SMTP servers.
|
com.hubspot.smtp.messages |
This package contains classes that represent the content of an email.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(MessageContent content)
Sends message content to the remote server and waits for a response.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(String from,
Collection<String> recipients,
MessageContent content)
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(String from,
Collection<String> recipients,
MessageContent content,
SendInterceptor sendInterceptor)
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(String from,
String to,
MessageContent content)
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(String from,
String to,
MessageContent content,
SendInterceptor sendInterceptor)
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.sendPipelined(MessageContent content,
io.netty.handler.codec.smtp.SmtpRequest... requests)
Sends a series of commands to the server without waiting for a response.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteBufMessageContent
A
MessageContent implementation backed by a Netty ByteBuf . |
class |
InputStreamMessageContent
A
MessageContent implementation backed by an InputStream . |
Modifier and Type | Method and Description |
---|---|
static MessageContent |
MessageContent.of(io.netty.buffer.ByteBuf messageBuffer)
Creates a
MessageContent from a ByteBuf that might contain eight-bit characters. |
static MessageContent |
MessageContent.of(io.netty.buffer.ByteBuf messageBuffer,
MessageContentEncoding encoding)
|
static MessageContent |
MessageContent.of(com.google.common.io.ByteSource byteSource)
Creates a
MessageContent from a ByteSource that might contain eight-bit characters. |
static MessageContent |
MessageContent.of(com.google.common.io.ByteSource byteSource,
MessageContentEncoding encoding)
|
static MessageContent |
MessageContent.of(Supplier<InputStream> messageStream)
Creates a
MessageContent from an InputStream that might contain eight-bit characters. |
static MessageContent |
MessageContent.of(Supplier<InputStream> messageStream,
MessageContentEncoding encoding)
|
static MessageContent |
MessageContent.of(Supplier<InputStream> messageStream,
MessageContentEncoding encoding,
int size)
|
Copyright © 2018. All rights reserved.