class email::Email

sys::Obj
  email::Email

@Serializable

Source

Email models a top level MIME message.

See pod doc and examples.

bcc

Str[]? bcc

Source

List of "bcc" email addresses. See MimeUtil.toAddrSpec for address formatting.

body

EmailPart? body

Source

Body of the email - typically an instance of TextPart or MultiPart.

cc

Str[]? cc

Source

List of "cc" email addresses. See MimeUtil.toAddrSpec for address formatting.

encode

virtual Void encode(OutStream out)

Source

Encode as a MIME message according to RFC 822.

from

Str? from

Source

From email address. See MimeUtil.toAddrSpec for address formatting.

msgId

Str msgId := ...

Source

Unique identifier for message (auto-generated).

recipients

Str[] recipients()

Source

Return the aggregation of to, cc, and bcc.

replyTo

Str? replyTo

Source

Reply-To email address.

subject

Str subject := ""

Source

Subject of the email. This string can be any Unicode and is automatically translated into an encoded word.

to

Str[]? to

Source

List of "to" email addresses. See MimeUtil.toAddrSpec for address formatting.

validate

virtual Void validate()

Source

Validate this email message - throw Err if not configured correctly.