SmtpAuth

sealed interface SmtpAuth(source)

Credentials for SMTP AUTH (RFC 4954).

Inheritors

Types

Link copied to clipboard
class OAuth2(val username: String, val accessToken: suspend () -> String) : SmtpAuth

Authenticate with an OAuth 2.0 access token using OAUTHBEARER (RFC 7628) or XOAUTH2.

Link copied to clipboard
class Password(val username: String, val password: String) : SmtpAuth

Authenticate with PLAIN or LOGIN.

Properties

Link copied to clipboard
abstract val username: String