Messages can be sent by calling Methods of the SendMessage class, which takes the Mail to be sent as one argument.

Figure: The SendMessage Class

JavaMail_SendMessage

Figure: The Mail Class

Sending a Message

Find below an example activity using the sendMessage method:

JavaMail_SendMessage_sendMessage

Parameters of method sendMessage in detail:

Name
Type
Direction
Description
connectionMailConnectionIn
mailMailInAn instance of the Mail class defining the message to be sent.