code: private MimeMessage createMimeMessage() {
  		// prepare the message
  		Session session = Session.getInstance(properties, authenticator);
  		return new MimeMessage(session);
  	}
docs: Initialize the session and create the mime message.
  
  @return the mime message