SmtpMailerBuilder

class SmtpMailerBuilder(var host: String)(source)

Builder for SmtpMailer, see smtpMailer.

Constructors

Link copied to clipboard
constructor(host: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var port: Int?

Defaults to the usual port for security.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun credentials(username: String, password: String)

Authenticate with username and password.

Link copied to clipboard
fun oauth2(username: String, accessToken: suspend () -> String)

Authenticate with an OAuth 2.0 access token, fetched for every new connection.