Send SMTP Mail

Purpose

Sends an email using SMTP server.

Description

The Send SMTP Mail component sends an email using an SMTP server. In the given example, the Send SMTP Mail activity is configured to send an email to an addressee via an SMTP server set in the Server property.

Configuration of a 'Send SMTP Mail' activity.

Workflow details

Properties

Property

Data Type

Description

General

 

 

Display Name

String

Display name of the component.

Enable Pause

String

Option to pause the activity (related to the component) during a job execution after receiving a pause control signal from the Cockpit application. The checkbox is selected by default.

Input

 

 

Attached Files#

Collection

Collection of file-paths representing the files that are to be attached. For example, "C:\Files\report.pdf".

Attachments#

String[]

An array of file-paths representing the files that are to be attached. For example, "C:\Files\report.pdf".

Bcc

String

Email addresses that are to be Bcc'd.

Cc

String

Email addresses that are to be Cc'd.

Email ID*

String

The email address through which the email is to be sent.

Forward Email

MailMessage

Mail body that is to be forwarded.

Note: Mails can be fetched using Get IMAP Mail and Get POP3 Mail components.

Message Body

String

The message inside the email (in addition to the message of the forwarded email, in case it is included).

Password*

String

Password of the email account through which the email is to be sent.

See Email ID.

Port

Int32

The port number of the SMTP Server.

Sender Email ID

String

The email address of the intermediary email address through which the email is to be sent to the recipient. Such emails are called relay emails and are generally used for sending marketing emails and mails for which no replies are solicited like password-reset emails.

Note: An SMTP server needs to be configured for sending a relay email.

Sender Name

String

The name of the sender to be included in the "From" header of the email to make it more recognizable to the recipients.

Server

String

The address of the SMTP Server to which the email is to be sent.

Subject

String

The subject of the mail to be sent.

To

String

Email addresses to which the email should be sent.

Preferences

 

 

Is Body HTML

-NA-

If selected, HTML tags in the email body are interpreted before displaying them to the user.

Secure Connection

-NA-

If selected, the data connection (to the SMTP server) is upgraded to a secure connection.

Note: Selecting the option does not ensures that the data will be transferred using a secure connection unless the SMTP server is configured for secure transfer of data.

Timeout (MS)

Int32

Time (in seconds) until which the activity will wait for a response from the server before generating an error.

Default time is 30 seconds.

Note
1) Fields marked with * sign are mandatory.
2) Properties marked with # are mutually exclusive properties such that value for only one of the properties can be provided at a time.