Package | Description |
---|---|
com.hubspot.smtp.client |
This package contains classes to create and maintain connections to SMTP servers.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<SmtpClientResponse> |
SmtpSession.authLogin(String username,
String password)
Authenticates with the remote server using the LOGIN mechanism.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.authPlain(String username,
String password)
Authenticates with the remote server using the PLAIN mechanism.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.authXoauth2(String username,
String accessToken)
Authenticates with the remote server using the XOAUTH2 mechanism.
|
CompletableFuture<SmtpClientResponse> |
SmtpSessionFactory.connect(SmtpSessionConfig config)
Connects to a remote server.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(MessageContent content)
Sends message content to the remote server and waits for a response.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.send(io.netty.handler.codec.smtp.SmtpRequest request)
Sends a command 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.sendChunk(io.netty.buffer.ByteBuf data,
boolean isLast)
Sends binary message content to the remote server and waits for a response.
|
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.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.sendPipelined(io.netty.handler.codec.smtp.SmtpRequest... requests)
Sends a series of commands to the server without waiting for a response.
|
CompletableFuture<SmtpClientResponse> |
SmtpSession.startTls()
Sends the STARTTLS command and tries to use TLS for this session.
|
Copyright © 2018. All rights reserved.