vertx / io.vertx.kotlin.ext.mail / io.vertx.ext.mail.MailClient / sendMailAwait

sendMailAwait

suspend fun MailClient.sendMailAwait(email: MailMessage): MailResult

send a single mail via MailClient

Parameters

email - MailMessage object containing the mail text, from/to, attachments etc

resultHandler - will be called when the operation is finished or it fails (may be null to ignore the result)

Returnthis
MailClient instance so the method can be used fluently *