Setting the message body |
The message body of a MIME message may be set using any of the MimeMessage#setBody methods. See the MimeMessage JavaDoc for a list of all available methods.
Example
// set message body msg.setBody("This is the body"); |