logo

class

email::Email

sys::Obj
  email::Email

Email models a top level MIME message.

See docLib for details. See docCookbook for coding examples.

Slots

bcc

Str[] bcc

List of "bcc" email addresses.

Source

body

EmailPart body

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

Source

cc

Str[] cc

List of "cc" email addresses.

Source

encode

virtual Void encode(OutStream out)

Encode as a MIME message according to RFC 822.

Source

from

Str from

From email address.

Source

messageId

Str messageId := DateTime.now().ticks() / 1000000)) + ".") + sys::Buf.random(4).toHex()) + "@") + inet::IpAddress.local().hostname()) + ">"

Unique identifier for message (auto-generated).

Source

recipients

Str[] recipients()

Return the aggregation of to, cc, and bcc.

Source

subject

Str subject := ""

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

Source

to

Str[] to

List of "to" email addresses.

Source

validate

virtual Void validate()

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

Source