Package | Description |
---|---|
com.hubspot.smtp.client |
This package contains classes to create and maintain connections to SMTP servers.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeSendInterceptor
A chain of
SendInterceptor instances that will call each other in turn. |
Modifier and Type | Method and Description |
---|---|
Optional<SendInterceptor> |
SmtpSessionConfig.getSendInterceptor()
A
SendInterceptor that can intercept commands and data before
they are sent to the server. |
List<SendInterceptor> |
CompositeSendInterceptor.getSendInterceptors() |
Modifier and Type | Method and Description |
---|---|
static CompositeSendInterceptor |
CompositeSendInterceptor.of(SendInterceptor... sendInterceptors)
Creates a chain of
SendInterceptor instances that will call each other in turn. |
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,
SendInterceptor sendInterceptor)
Sends an email as efficiently as possible, using the extended SMTP features supported by the remote server.
|
SmtpSessionConfig.Builder |
SmtpSessionConfig.Builder.sendInterceptor(SendInterceptor sendInterceptor)
Initializes the optional value
sendInterceptor to sendInterceptor. |
SmtpSessionConfig |
SmtpSessionConfig.withSendInterceptor(SendInterceptor value)
Copy the current immutable object by setting a present value for the optional
sendInterceptor attribute. |
Modifier and Type | Method and Description |
---|---|
static CompositeSendInterceptor |
CompositeSendInterceptor.of(List<SendInterceptor> interceptors)
Creates a chain of
SendInterceptor instances that will call each other in turn. |
SmtpSessionConfig.Builder |
SmtpSessionConfig.Builder.sendInterceptor(Optional<SendInterceptor> sendInterceptor)
Initializes the optional value
sendInterceptor to sendInterceptor. |
SmtpSessionConfig |
SmtpSessionConfig.withSendInterceptor(Optional<SendInterceptor> optional)
Copy the current immutable object by setting an optional value for the
sendInterceptor attribute. |
Copyright © 2018. All rights reserved.