Adds the header for a part in a multipart Mime message. After calling this method, you need to write your data content into the TFlexCelWriter using WriteQuotedPrintable or WriteBase64 and after that always call EndPart.
Syntax
Unit: FlexCel.Core
procedure TMimeWriter.AddPartHeader(const message: TFlexCelWriter; const contentType: string; const contentTransferEncoding: TContentTransferEncoding; const contentLocation: TUri; const contentId: string; const encodingName: string);
Parameters
<-> |
Parameter |
Type |
Description |
const |
message |
TFlexCelWriter |
TFlexCelWriter where you are saving the message. |
const |
contentType |
string |
Type of the header as defined in the MIME standard, e.g. "text/plain", "text/html", etc. |
const |
contentTransferEncoding |
TContentTransfer​Encoding |
How the part will be codified. Use base64 for binary TFlexCelWriter and quotedprintable for text. |
const |
contentLocation |
TUri |
The location for this resource. null if you do not want to set a location. |
const |
contentId |
string |
Content id of the resource, if you want to use it in cid: links. Null if you do not want to specify a content-id. Note that this string will not be escaped by the framework, so make sure it contains valid characters. As it needs to be globally unique, normally a GUID can be a good option here. |
const |
encodingName |
string |
Name for the encoding on this part. Null means do not write an encoding. (for example in binary parts) |
See also