
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.
- body
-
EmailPart body
Body of the email - typically an instance of
TextPart
orMultiPart
. - cc
-
Str[] cc
List of "cc" email addresses.
- encode
-
virtual Void encode(OutStream out)
Encode as a MIME message according to RFC 822.
- from
-
Str from
From email address.
- messageId
-
Str messageId := DateTime.now().ticks() / 1000000)) + ".") + sys::Buf.random(4).toHex()) + "@") + inet::IpAddress.local().hostname()) + ">"
Unique identifier for message (auto-generated).
- recipients
-
Str[] recipients()
- subject
-
Str subject := ""
Subject of the email. This string can be any Unicode and is automatically translated into an encoded word.
- to
-
Str[] to
List of "to" email addresses.
- validate
-
virtual Void validate()
Validate this email message - throw Err if not configured correctly.