TMimeWriter.CreateMultiPartMessage Method
Creates the headers for a multipart MIME file. This must be the first method to call in order to create a MIME file. After this, you need to call AddPartHeader and start adding the parts of the message, and you always need to end the message by calling EndMultiPartMessage.
Syntax
Unit: FlexCel.Core
procedure TMimeWriter.CreateMultiPartMessage(const message: TFlexCelWriter; const multipartType: TMultipartType; const contentType: string; const contentLocation: TUri);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | message | TFlexCelWriter | |
const | multipartType | TMultipartType | Type of multipart for this file. |
const | contentType | string | Type of the header as defined in the MIME standard, e.g. "text/plain", "text/html", etc. This is the type of the main part on a related message. Set it to null if there is no main part. |
const | contentLocation | TUri | The location for the whole mime file. null if you do not want to set a location. for this to work in ie/opera, etc, this should be something like "file:///filename.ext" |