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
connectionMailConnectionInSpecifies connection details such as server name, protocol etc. (see Mail Connection).
mailMailInAn instance of the Mail class defining the message to be sent.
On this Page:
  • No labels