Fan

 

class

email::Email

sys::Obj
  email::Email

@serializable

Email models a top level MIME message.

See docLib for details. See docCookbook for coding examples.

Slots

bccSource

Str[]? bcc

List of "bcc" email addresses.

bodySource

EmailPart? body

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

ccSource

Str[]? cc

List of "cc" email addresses.

encodeSource

virtual Void encode(OutStream out)

Encode as a MIME message according to RFC 822.

fromSource

Str? from

From email address.

messageIdSource

Str messageId := ...

Unique identifier for message (auto-generated).

recipientsSource

Str[] recipients()

Return the aggregation of to, cc, and bcc.

subjectSource

Str subject := ""

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

toSource

Str[]? to

List of "to" email addresses.

validateSource

virtual Void validate()

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