Retrieving the body of an email message

An email message can contain plain text, HTML, or both. The content and the order of the content in the email message can vary.

A BlackBerry® device application can use the MimeBodyPart class to retrieve the HTML content, or use the TextBodyPart class to retrieve the plain text content. You can use a MultiPart object to retrieve objects from both the MimeBodyPart class and the TextBodyPart class.

For example, you might retrieve the content of an email message to translate the content into a different language.

Support for text and HTML was introduced in BlackBerry® Device Software 4.5 for BlackBerry devices associated with BlackBerry® Enterprise Server 4.1 Service Pack 6 (4.1.6) or the BlackBerry® Internet Service 2.5.

Previous topic: Open a message

Was this information helpful? Send us your comments.