Fantom

 

abstract class

email::EmailPart

sys::Obj
  email::EmailPart

@Serializable { simple=false collection=false }

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

See pod doc and examples.

Slots

encodeSource

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.

headersSource

Str:Str headers := ...

Map of headers. The header map is case insensitive.

validateSource

virtual Void validate()

Validate this part - throw Err if not configured correctly.