Discussion Locked

MIME What's all about...

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What header value contains the MIME type for a message or document?

6 replies

by mcse2kgrl

The purpose of the ContentType property is to describe the data contained in the body of the message or attachment. The ContentType property and the Subtype property together specify the "Content Type" field of the header. The ContentType property can be set to one of the following values.

Value Meaning
"text" Textual information.
"audio" Audio data.
"video" Video data.
"image" Image data.
"message" Encapsulated message.
"multipart" Multiple parts of independent types.
"application" Uninterpreted binary data.

Each content type has one or more subtypes. Please check the reference page of the Subtype property for additional information. The ContentType and Subtype properties are mandatory for MIME messages.

When a message is extracted, this property will contain the content type of the extracted file. Please check this property during the OnExtract event. A ContentType of "image" and Subtype of "gif" tells the application that the data is an image and this information may be used to display the raw data.

This property can be changed at design time and changed at run time before creating a message. There is no default value for this property.

Example

Mime.ContentType = "multipart"
Mime.Subtype = "mixed"

Hope this helped you,
Angela

by pschuvie

Well let's see if you want a really technical information about MIME then see
http://www.oac.uci.edu/indiv/ehood/MIME/2047/rfc2047.html

Basically, it is handling the total message in multiple parts and generally occurs where one mail system sends to another a message that cannot be supported and must be translated into parts that can be handled to retain the total message information.

A common example is when Outlook mail is sent to say an AOL account. Up to AOL 6.0, the plain AOL emailsystem did not handle html based mail, especially embedded graphics, and needed to translate it to be in Flat ASCII. So the message is received, manipulated and basically broken into three parts. One is the base header information, two is any graphical representations included (ie. backgrounds, stationary representations, etc.) and finally three the actual Text of the message.

In order for the user to effectively "read" the message it is necessary to add a software supporting program. Themost common being WinZip. The user gets the message, downloads the "attachement" ( which really is the full message) and lets Winzip handle the unpacking process. It is really kind of sloppy since the parts are not glued back to together properly.

This same "packaging" can occur from the ASCII based email package back out to a more sophisticated package when an attachment is included with the mail. It can go out as a MIM encoded mail with the parts being the actual mail and the attachment, (often which has been zipped)

Hope this helps.

This discussion is closed to new replies.