Fan

 

class

email::MultiPart

sys::Obj
  email::EmailPart
    email::MultiPart

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

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 "multipart/mixed".

partsSource

EmailPart[] parts := EmailPart[,]

The sub-parts of this multipart.

validateSource

override Void validate()

Overrides email::EmailPart.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