Preparing Data

Although the MIME specification allows a message to contain nearly any content, MIME messages are typically transmitted over protocols that have stricter requirements. By following a few simple guidelines, you can easily construct message bodies that meet the requirements of nearly all protocols.

To create a message body, follow these steps:

1.  Create an RWCString containing the data.

2.  Convert text to canonical form.

3.  Encode the string, if necessary.

Each step is discussed in more detail below. Program: Processing a Simple MIME Message presents a complete example program that creates a simple MIME message.

In this section: