This tutorial explains how to store the email message data in rich text format. Storing email messages in rich text format results in increased RAM storage space, when compared to storing messages in plain text format.
Create an email entry in the message store using CImEmailOperation::CreateNewL(), which takes all the following nine parameters.
Set the TBool parameter to EFalse.
Use the CImEmailOperation::ProgressL() function to obtain the TMsvId parameter of the newly created email. This is returned through a TPckgC <TMsvId > descriptor.
Create a CMsvEntry object using the TMsvId aMessageId parameter of the newly created email.
Use the CMsvEntry object to the create a CImEmailMessage object.
Create the body text of the email and insert into a CRichText object.
Call the CImEmailMessage::StoreBodyTextL() function and pass the CRichText class that contains the body text of the message.