MailerManager

Global registry for Mailer instances.

Properties

Link copied to clipboard

The mailer used by at.quickme.kotlinmailer.email.Email.send if no other mailer is passed.

Link copied to clipboard

True if defaultMailer has been set.

Functions

Link copied to clipboard
fun registerMailer(mailer: Mailer)

Register mailer, so it is closed by shutdownMailers. Mailer builders do this automatically.

Link copied to clipboard
suspend fun shutdownMailers()

Close and unregister all registered mailers, including the default one.