SmtpConfig
class SmtpConfig(val host: String, val port: Int = SmtpSecurity.STARTTLS.defaultPort, val security: SmtpSecurity = SmtpSecurity.STARTTLS, val auth: SmtpAuth? = null, val clientHostname: String = "localhost", val connectTimeout: Duration = 30.seconds, val commandTimeout: Duration = 5.minutes, val dataTimeout: Duration = 10.minutes, val maxConnections: Int = 1, val reuseConnections: Boolean = true, val failOnRejectedRecipient: Boolean = true, val allowInsecureAuth: Boolean = false, val socketFactory: SmtpSocketFactory = defaultSmtpSocketFactory())(source)
Settings of an SmtpMailer.
Constructors
Link copied to clipboard
constructor(host: String, port: Int = SmtpSecurity.STARTTLS.defaultPort, security: SmtpSecurity = SmtpSecurity.STARTTLS, auth: SmtpAuth? = null, clientHostname: String = "localhost", connectTimeout: Duration = 30.seconds, commandTimeout: Duration = 5.minutes, dataTimeout: Duration = 10.minutes, maxConnections: Int = 1, reuseConnections: Boolean = true, failOnRejectedRecipient: Boolean = true, allowInsecureAuth: Boolean = false, socketFactory: SmtpSocketFactory = defaultSmtpSocketFactory())
Properties
Link copied to clipboard
Allow sending credentials over an unencrypted connection.
Link copied to clipboard
The client's domain name or address literal sent with EHLO.
Link copied to clipboard
Timeout for each command reply; RFC 5321 suggests 5 minutes.
Link copied to clipboard
Link copied to clipboard
Timeout for the reply after the message data; RFC 5321 suggests 10 minutes.
Link copied to clipboard
Fail the whole email if any recipient is rejected, otherwise deliver to the accepted ones.
Link copied to clipboard
Maximum number of parallel connections.
Link copied to clipboard
Keep connections open between emails.
Link copied to clipboard
Link copied to clipboard