FilePart
class FilePart : EmailPart
FilePart is used to transfer binary content from a File.
Construct with default type of "text/plain"
File content
Encode as a MIME message according to RFC 822
Validate this part - throw Err if not configured correctly
virtual Void encode(OutStream out)
Encode as a MIME message according to RFC 822.
File? : file
File content
new make()
Construct with default type of "text/plain".
virtual Void validate()
Validate this part - throw Err if not configured correctly:
- file must be non-null
- if Content-Type not set, defaults to file.mimeType
- if Content-Type name param not set, defaults to file.name
- Content-Transfer-Encoding must be base64