SendMail

SendMail is an activity that sends an email by way of an SMTP server.

Settings

Note: To securely configure the SendMail activity using the smtp.gmail.com server, use TLS on Port 587 or SSL on port 465.

The Settings tab has the following fields.

Field Description
Server The host name or IP address for the mail server.
Port The port used to connect to the server.
Connection Security The type of connection to be used to communicate with the mail server. Select TLS or SSL depending upon the security configuration of the mail server. In case no security is enabled on the mail server, select NONE.
Username The username to use when authenticating to the mail server.
Password The password to use when authenticating to the mail server.

Input

This tab displays the fields that are used as input for the activity.

Input Item Description
message_content_type The type of message content. Valid types are "text/plain" or "text/html".

sender The email address of the sender.
recipients The recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

cc_recipients The CC recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

bcc_recipients The BCC recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

reply_to

Email address to which the reply message is to be sent.

subject The subject of the email.
message The content of the email message.
attachments

File attachments to be sent along with the email message.

To map the child elements, add array.forEach() to the attachments field and then specifiy the child elements as follows:

  • file: Specify the path of the file to be attached using file://<path> or specify the content of the file by enclosing it in double quotes.

    Note: In Flow Tester, file://<path> cannot be specified.
  • filename: Specify the name of the file to be attached.
  • base64EncodedContents: If the file is a Base64 encoded file, set this field to true. The default is blank (or false).
To send multiple attachments, use the Loop feature.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Cloud™ Integration - Flogo® (PAYG) User's Guide for information on the Loop tab.