String pattern = subjectSubstringToSearch;
SubjectTerm st = new SubjectTerm(pattern);
Message [] found =;

By using the above code we can access email body by comparing with mail subject, But there is a chance of same subject for more mails, so please help me to get the email body by mail number.

WE can get email number by getMessageNumber();

Please helpme, thank you........