Package-level declarations

Types

Link copied to clipboard
interface Mailer

Delivers emails, e.g. via SMTP or JMAP.

Link copied to clipboard

Global registry for Mailer instances.

Link copied to clipboard
open class MailException(message: String, cause: Throwable? = null) : Exception

Thrown if an email could not be delivered.

Link copied to clipboard
class SendReceipt(val messageId: String, val acceptedRecipients: List<EmailAddress>, val rejectedRecipients: Map<EmailAddress, String> = emptyMap(), val serverResponse: String? = null)

The result of a successful Mailer.send.

Functions

Link copied to clipboard
suspend fun Email.send(mailer: Mailer = MailerManager.defaultMailer): SendReceipt

Send this email.