An immutable email message. Create one with emailBuilder.
Properties
Link copied to clipboard
Attachments, including inline ones referenced by cid: URLs from the HTML body.
Link copied to clipboard
Hidden recipients; they are only part of the envelope and never rendered into headers.
Link copied to clipboard
Visible carbon copy recipients.
Link copied to clipboard
The author of the message.
Link copied to clipboard
Link copied to clipboard
The Message-IDs of the thread, without angle brackets.
Link copied to clipboard
Addresses replies should be sent to.
Link copied to clipboard
Visible primary recipients.
Functions
Link copied to clipboard
Forward this email. The original is attached as message/rfc822.
Link copied to clipboard
Create a builder pre-filled with this email's content and a new messageId.
Link copied to clipboard
Render this email to a MIME message.
Link copied to clipboard
inline fun Email.reply(from: EmailAddress, toAll: Boolean = false, builder: EmailBuilder.() -> Unit = {}): Email
Reply to this email. The new email is addressed to the Email.replyTo addresses (or Email.from), keeps the thread headers and quotes the original body.
Link copied to clipboard
Send this email.