TMimeWriter.AddPartHeader Method
Adds the header for a part in a multipart Mime message. After calling this method, you need to write your data content into the TextWriter using WriteQuotedPrintable or WriteBase64 and after that always call EndPart.
Syntax
Namespace: FlexCel.Core
public void AddPartHeader(TextWriter message, String contentType, TContentTransferEncoding contentTransferEncoding, Uri contentLocation, String contentId, String encodingName)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
message | TextWriter | TextWriter where you are saving the message. | |
contentType | String | Type of the header as defined in the MIME standard, e.g. "text/plain", "text/html", etc. | |
contentTransferEncoding | TContentTransferEncoding | How the part will be codified. Use base64 for binary TextWriter and quotedprintable for text. | |
contentLocation | Uri | The location for this resource. null if you do not want to set a location. | |
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. | |
encodingName | String | Name for the encoding on this part. Null means do not write an encoding. (for example in binary parts) |