Send
ActionStep Reference » Windows » Network » EMAIL » Send
The ActionStep Send Email creates and sends an email message via Simple Mail Transfer Protocol (SMTP).
- Open the Windows node in the Workspace Explorer.
- Open the Network node.
- In the EMAIL node, select the Send ActionStep.
Parameters:
The ActionStep has the following input parameters:
name |
Description
|
---|---|
Server | The mail server to use. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Username | The username of your mail server account. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Password | The password of your mail server account. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Port | The mail server port. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [Int64] |
SSL Connection | Enable or disable SSL connection. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [Boolean] |
From | The sender email address. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
To | The receiver email address. Allowed Context Scopes [Fixed] Allowed Context Types [Fixed] |
BCC | The email addresses for blind carbon copy. Allowed Context Scopes [Fixed] Allowed Context Types [Fixed] |
CC | The email addresses for carbon copy. Allowed Context Scopes [Fixed] Allowed Context Types [Fixed] |
Subject | The subject of the email. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Text Format | Determines the text format of the sent message. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Message | The content of the email. Allowed Context Scopes [Fixed, Local, Global, Reference] Allowed Context Types [Fixed, Variable, Parameter, Result, Enum] Allowed Context Values [String] |
Attachements | The list of attachements. Allowed Context Scopes [Fixed] Allowed Context Types [Fixed] |
Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum] All other values of the parameters are determined by the specified format. |
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 ActionStep in the "Then" branch is executed if the Email was successfully sent to the recipient and is then output via Message Box. Otherwise, the ActionStep 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 ActionStep in the "Else" branch is executed.