Getting the message body |
You may get the message body using the MimeMessage#getBody or MimeMessage#getBodyData methods which return a String and byte[] respectively.
Example
// get message body as a string String body = msg.getBody();
Example
// get message body as a byte[] byte[] body = msg.getBodyData(); |