Body Section

The body section of the MSMQ mail format begins at the line after the separating empty line and ends at end of the file.

The body section can be formatted in several ways. If the Content-Type header value is text/plain, the body section only contains the text of the message. If the Content-Type header value is multipart/form-data, the body section contains a collection of field sections, each separated by a boundary string (the boundary string is defined in the header section).If the Content-Type header value is application/x-ms-tnef, the body section contains the TNEF data of the message. For information on the Content-Type header, see Header Section.

The format of a multiple, form-data body section is as follows:

--boundary string
field section 1
--boundary string
field section 2

--boundary string¾-

 

Each field section describes one of the form's fields and is formatted very much like the message itself. Each section starts with a Content-Disposition header line, followed by an empty line, followed by a body section line. The Content-Disposition line describes the field and the body section line specifies the value of the field. The boundary string following the last field section always ends with two minus characters (--).

The following example shows a field section that specifies the customer name John Doe (7fs9dfsdfs9sdf is the boundary string):

--7fs9dfsdfs9sdf
Content-Disposition: form-data; name=Customer

John Doe
--7fs9dfsdfs9sdf                 'If last field, add --
 

If the field is a Boolean field such as a text box, then the Content-Disposition line should also contain the parameter x-type=boolean (prefixed by a semicolon).

For example:

blank line(cr/lf)
--hj57ujkdfg4535
Content-Disposition: form-data; name=SaveSettingsOnExit; x-type=boolean

true
--hj57ujkdfg4535                 'If last field, add --
 

Note When creating a multiple, form-data body section, the following apply:

For samples of the MSMQ MAIL format, see Sample Form Message and Sample Text Message.


© 1997 by Microsoft Corporation. All rights reserved.