This Example shows you how to send a html message using javamail api. A client create new message by using Message subclass. It sets attributes like recipient
address and the subject, and inserts the content into the Message object, and inserts the content into
the Message object. Finally, it sends the Message by invoking the Transport.send() method.
The Transport class models the transport agent that routes a message to its destination addresses. This class provides methods that send a message to a list of recipients. Invoking the Transport.send() method with a Message object identifies the appropriate transport based on its destination addresses.