Table of Contents

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

Namespace: FlexCel.Core

public void CreateMultiPartMessage(TextWriter message, TMultipartType multipartType, String contentType, Uri contentLocation)

Parameters

<-> Parameter Type Description
message TextWriter
multipartType TMultipartType Type of multipart for this file.
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.
contentLocation Uri 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"

See also