@Serializable
class Email : Obj
Email models a top level MIME message.
List of "cc" email addresses
List of "bcc" email addresses
Subject of the email
Reply-To email address
Unique identifier for message (auto-generated)
From email address
List of "to" email addresses
Body of the email - typically an instance of TextPart or MultiPart
Encode as a MIME message according to RFC 822
Validate this email message - throw Err if not configured correctly
Str[]? : bcc
List of "bcc" email addresses. See MimeUtil.toAddrSpec for address formatting.
EmailPart? : body
Body of the email - typically an instance of TextPart or MultiPart.
Str[]? : cc
List of "cc" email addresses. See MimeUtil.toAddrSpec for address formatting.
virtual Void encode(OutStream out)
Encode as a MIME message according to RFC 822.
Str? : from
From email address. See MimeUtil.toAddrSpec for address formatting.
Str : msgId
Unique identifier for message (auto-generated).
Str[] recipients()
Str? : replyTo
Reply-To email address.
Str : subject
Subject of the email. This string can be any Unicode and is automatically translated into an encoded word.
Str[]? : to
List of "to" email addresses. See MimeUtil.toAddrSpec for address formatting.
virtual Void validate()
Validate this email message - throw Err if not configured correctly.