ec_message_part_create_singleton — Create a new singleton message part
ec_message_part * **ec_message_part_create_singleton** ( | mimetype, | |
| | encoding, | |
| | body
); | |
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Create a new singleton message part.
Creates a new message part representing a singleton (or leaf).
The returned value has a single reference; the caller is responsible for releasing it at the appropriate time.
The newly created part has an initial Content-Type header created based on the supplied mimetype parameter.
encoding is one of EC_MIME_TE_7BIT, EC_MIME_TE_8BIT, EC_MIME_TE_BINARY, EC_MIME_TE_QUOTED_PRINTABLE or EC_MIME_TE_BASE64. It must match the encoding of the content referenced by the body parameter.
body is an optional io_object containing the literal non-header content for the message part. For example, if encoding is EC_MIME_TE_QUOTED_PRINTABLE then body is assumed to be a stream of quoted-printable encoded data.
used to construct the Content-Type header
indicates the encoding used in the body
an io_object for the body content. May be NULL.
**Configuration Change. ** This feature is available starting from Momentum 3.0.18.