KtorSmtpSocketFactory

class KtorSmtpSocketFactory(tls: TLSConfigBuilder.() -> Unit = {}) : SmtpSocketFactory(source)

SmtpSocketFactory based on ktor-network, with TLS from ktor-network-tls.

Parameters

tls

customizes the TLS handshake, e.g. a custom trustManager on the JVM

Constructors

Link copied to clipboard
constructor(tls: TLSConfigBuilder.() -> Unit = {})

Functions

Link copied to clipboard
open suspend override fun connect(host: String, port: Int, implicitTls: Boolean, timeout: Duration): SmtpSocket

Connect to host on port.