connect

abstract suspend fun connect(host: String, port: Int, implicitTls: Boolean, timeout: Duration): SmtpSocket(source)

Connect to host on port.

Parameters

implicitTls

perform the TLS handshake immediately after connecting (SMTPS, RFC 8314)