When session object has been created, message is created so that to send it by the help of Message class. As message class is considered as abstract class hence subclass javax.mail.internet.MimeMessage will be used.
setText() method can also be used to set the content.
MimeMessage message = new MimeMessage(session)
// set the content of message by setContent() method