We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Reading Text in Email

Hi Team ,

I am able extract the email folder collection .but not extract the text sent by the user in the pst folder.Please let me know any possiblility available for this in java

Thank you very much,
kind regards ,
priyanga G

@priyanga,

Thank you for posting your inquiry.

Please share your sample PST file along with the sample code you are using at your end with us. We’ll look into these for assisting you further.

Hi ,

Thanks for your quick reply.
Here ,I have enclosed the sample code for your reference.Test.zip (1.0 KB)

Many thanks for all,
regards ,
priyanga G

@priyanga,

You need to extract message from PST file using the pst.extractMessage method and then use it for getting message body unlike where you have defined new MailMessage and getting its body.

MapiMessage msg = pst.extractMessage(msgInfo);

Please try it at your end and let us know your feedback.

HI,

Thanks for all.

I have an one more query is to convert the pst files to csv using aspose java.

Thank you,
kind regards ,
priyanga G

@priyanga,

There is no such option available in Aspose.Email for Java to convert PST file to CSV format. You may please use own logic to convert to CSV once mail is fetched from PST using Aspose.Email.