class

EmailPart

@Serializable
abstract class EmailPart : Obj

EmailPart is the base class for parts within a multipart MIME document.

See pod doc and examples.

fields headers

Map of headers

methods encode

Encode as a MIME message according to RFC 822

validate

Validate this part - throw Err if not configured correctly

encode virtual Void encode(OutStream out)

Encode as a MIME message according to RFC 822. The base class encodes the headers - subclasses should override to call super and then encode the part's content.

headers Str:Str : headers

Map of headers. The header map is case insensitive.

validate virtual Void validate()

Validate this part - throw Err if not configured correctly.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST