Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-10-2012 01:52 AM
I am working on an application which reads the email body and attachments and uploads to server. As part of this I am able to read the email body (with complete HTML formatting of the email body) and attachments . I am using the below code to get the content of the email body.
InputStream mbpStream = mimebodypart.getInputStream();
int ch = mbpStream.read();
ch = mbpStream.read();
With the above code I am able to retrieve the email body content only and not the subject,from address, to address,sent date etc details.
How to get all the details as part of email body (similar to the email print which we do on browser on desktop)
Thanks in advance,
01-10-2012 02:42 AM
01-10-2012 05:17 AM
Yes to get the subject sender and other details there are separate methods available in Message class. So it is not possbile to get these details as part of body?
My requirement is to print the email body and attachments. But when I am printing the email body only the email body content id getting printed which is not similar to the email print which we do from our desktop browser.
Are there any idea/solutions to achieve this??
Is it possbile to combine the the details with the body content ( retaining the email formatting)
01-10-2012 05:20 AM