Getting the message body

Top  Previous  Next

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();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC