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