Name
mimepart:Subparts -- set sub-parts of a multipart mime part (V2.0)
Synopsis
mimepart:Subparts(subparts[, type, name, filename, headers])
Function
This sets a multipart mime part's content from the mime object which is passed in the subparts parameter. Mime objects are created using easy:Mime(). Mime parts are created using mime:AddPart().

Optionally, this method can also initialize the mime part object to the data specified in the optional arguments type, name, filename, and headers. Passing these arguments is equivalent to calling the methods mimepart:Type(), mimepart:Name(), mimepart:Filename(), and mimepart:Headers(), respectively.

Note that after this methods succeeds, the mime object handle specified in subparts belongs to the multipart part and must not be freed explicitly. It may however be updated by subsequent calls to mime API functions.

Inputs
subparts
mime object holding the subparts
type
optional: mime part type
name
optional: mime part name
filename
optional: mime part remote file name
headers
optional: mime part headers

Show TOC