Create a MIME String
The MIME part is now complete and ready to use. To send the part over a network, convert the message into a MIME string using the asString() function, as shown:
 
RWMimePart message;
 
// ... fill message as described above
 
RWCString msgString;
 
try
{
msgString = message.asString();
}
catch (const RWMimeError& msg)
{
// Handle the error
}
The function doesn’t enforce a particular part style, or even guarantee that the part is correct MIME. The function does contain some safeguards that prevent a program from generating an unintelligible part. If the function can’t create a structurally correct MIME string, the function throws RWMimeError.