XenoGuard Documentation

Send

Actions » Windows » Network » EMAIL » Send 

The action Send Email creates and sends an email message via Simple Mail Transfer Protocol (SMTP).


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the Network node.
  3. In the EMAIL node, select the Send action.

Parameters:

The action has the following input parameters:


name Description
Server
The mail server to be used.
Username
The username of the mail server account to be used.
Password
The password of the mail server account to be used.
Port
The port number of the mail server.
SSL Connection
Determines whether the mail client used the Secured Sockets Layer (SSL) to encrypt the connection.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Data Type [Boolean]
From
The email address of the sender.
To
The email address of the primary recipient(s).
BCC
The list of blind carbon copy recipients for the email message.
CC
The list of carbon copy recipients for the email message.
Subject
The subject line for the email message.
Text Format
Determines the format of the email to be sent.

Accepted values: TEXT or HTML

Allowed Context Scopes [Fixed, Local, Global]
Allowed Data Type [Variable, Parameter, Enum]
Message
The email message to be sent to the recipient.
Attachment
The list of attached file(s) of the email.

Parameter of the File sub-branch:

  • Path Name - the specified path of the file to be attached in the email
Allowed Context Scopes [Fixed, Local, Global]
Allowed Data Type [Variable, Parameter, Enum]

Information Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
All other values of the parameters are determined by the specified format.
Information The parameter Address of the Email sub-branch can be accessed in the To, BCC, and CC parameters.

Example 1 (Send email response to client):

This example creates two local variables, SupportEmail and CustomerEmail, both with Text as data types and was assigned to the From Address and To Address parameters, respectively. Then, the Email was sent via the SMTP host.  The action in the "Then" branch is executed if the Email was successfully sent to the recipient and is then output via Message Box. Otherwise, the action in the "Else" branch is executed and then output via Message Box

Example 2 (Attach a compressed file in an email):

This example creates two local variables, Source Files and Archived File with Text as data type. The files from a directory are then compressed into a .zip file and set as the value of the Archived File variable. Afterward, the compressed file is attached to an email and sent to a specified recipient. A notice is displayed via Message Box in the "Then" branch if it has successfully sent the email, otherwise, the action in the "Else" branch is executed.


See other Email operations:

Get Attachment
Receive Email