TextPart is used to model email parts with a text MIME type. The default is "text/plain".
See docLib for details. See docCookbook for coding examples.
Slots
- encodeSource
-
override Void encode(OutStream out)
Overrides email::EmailPart.encode
Encode as a MIME message according to RFC 822.
- makeSource
-
new make()
Construct with default type of "text/plain".
- textSource
-
Str text := ""
Text body of the email part.
- validateSource
-
override Void validate()
Overrides email::EmailPart.validate
Validate this part - throw Err if not configured correctly:
- text must be non-null
- Content-Type must be defined
- if Content-Type charset not defined, defaults to utf-8
- Content-Transfer-Encoding must be 8bit unless using us-ascii