Kotlinmailer v2.0.0 Help

Render

Kotlinmailer renders emails to standard RFC 5322 / MIME messages itself, on every platform.

Email to EML String

email.eml

Email to RenderedEmail, which also exposes the UTF-8 bytes and whether the message needs the SMTPUTF8 or 8BITMIME SMTP extensions:

val rendered = email.render() rendered.bytes

Bcc recipients are never part of the rendered message; they are only used for the delivery envelope (email.recipients).

Last modified: 19 October 2026