public class SmtpConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SmtpConfiguration.TransportSecurity
How to secure the connection to an SMTP server.
|
| Constructor and Description |
|---|
SmtpConfiguration(java.lang.String host,
int port,
SmtpConfiguration.TransportSecurity transportSecurity,
java.lang.String username,
java.lang.String password)
Create a configuration that specifies how to connect to an SMTP server with the given username and password.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
SmtpConfiguration.TransportSecurity |
getTransportSecurity() |
java.lang.String |
getUsername() |
public SmtpConfiguration(@Nonnull
java.lang.String host,
int port,
@Nonnull
SmtpConfiguration.TransportSecurity transportSecurity,
@Nonnull
java.lang.String username,
@Nonnull
java.lang.String password)
host - the name of the host running the SMTP server to useport - the port of the SMTP server to usetransportSecurity - how to secure the SMTP connectionusername - the username to use for authenticating with the SMTP serverpassword - the password to authenticate withpublic java.lang.String getHost()
public int getPort()
public SmtpConfiguration.TransportSecurity getTransportSecurity()
public java.lang.String getUsername()
public java.lang.String getPassword()