Package | Description |
---|---|
io.vertx.ext.mail |
Modifier and Type | Method and Description |
---|---|
MailConfig |
MailConfig.setAuthMethods(String authMethods)
set string of allowed auth methods
|
MailConfig |
MailConfig.setEhloHostname(String ehloHostname)
set the hostname to be used for HELO/EHLO
|
MailConfig |
MailConfig.setHostname(String hostname)
Set the hostname of the smtp server.
|
MailConfig |
MailConfig.setIdleTimeout(int idleTimeout)
set the timeout for idle smtp connections (in seconds)
if not set, the default is 300 seconds
set to 0 to disable the client side timeout (shutdown of the connections depends on the server's timeout in this case)
set to -1 to disable connection pooling completely
|
MailConfig |
MailConfig.setLogin(LoginOption login)
Set the login mode for the connection.
|
MailConfig |
MailConfig.setMaxPoolSize(int maxPoolSize)
set the max allowed number of open connections to the mail server
if not set the default is 10
if set to 0, the number of connections is not limited
set to -1 to disable connection pooling completely
|
MailConfig |
MailConfig.setNetClientOptions(NetClientOptions netClientOptions)
set the NetClientOptions to be used when opening SMTP connections
if not set, an options object will be created based on other settings (ssl
and trustAll)
|
MailConfig |
MailConfig.setPassword(String password)
Set the password for the login.
|
MailConfig |
MailConfig.setPort(int port)
Set the port of the smtp server.
|
MailConfig |
MailConfig.setSsl(boolean ssl)
Set the sslOnConnect mode for the connection.
|
MailConfig |
MailConfig.setStarttls(StarttlsOption starttls)
Set the tls security mode for the connection.
|
MailConfig |
MailConfig.setTrustAll(boolean trustAll)
set whether to trust all certificates on ssl connect the option is also
applied to STARTTLS operation
|
MailConfig |
MailConfig.setUsername(String username)
Set the username for the login.
|
Modifier and Type | Method and Description |
---|---|
static MailService |
MailService.create(Vertx vertx,
MailConfig config)
create an instance of MailService that is running in the local JVM
|
Constructor and Description |
---|
MailConfig(MailConfig other)
copy config object from another MailConfig object
|
Copyright © 2015. All Rights Reserved.