← Back to Kairo Docs|API Reference (Dokka)

Mailer

class Mailer(mailersend: MailerSend, val templates: Map<String, String>)

Wrapper around the MailerSend SDK that dispatches API calls to Dispatchers.IO.

Constructors

Link copied to clipboard
constructor(mailersend: MailerSend, templates: Map<String, String>)

Properties

Link copied to clipboard

Mapping of logical template names to MailerSend template IDs.

Functions

Link copied to clipboard
suspend fun use(block: MailerSend.() -> Unit)

Executes a MailerSend SDK operation on Dispatchers.IO.