type

MultiPart

@Serializable
class MultiPart : EmailPart

MultiPart is used to model a multipart MIME type. The default is "multipart/mixed".

constructors

make

Construct with default type of "multipart/mixed".

fields

parts

The sub-parts of this multipart.

methods

encode

Encode as a MIME message according to RFC 822.

validate

Validate this part - throw Err if not configured correctly

Slot Details

encode

virtual override Void encode(OutStream out)

Encode as a MIME message according to RFC 822.

make

new make()

Construct with default type of "multipart/mixed".

parts

EmailPart[] parts := EmailPart[,]

The sub-parts of this multipart.

validate

virtual override Void validate()

Validate this part - throw Err if not configured correctly:

  • must have at least one part
  • Content-Type must be defined
  • if Content-Type doesn't define boundary, one is auto-generated