Using the SMTP Task

The SMTP Task is used to send emails.

General Page

Configure general email settings.

SMTP Task Editor - General Page

Connection Manager

The SMTP Destination Component requires an SMTP connection. The Connection Manager drop-down will show a list of all SMTP connection managers that are available in your current SSIS package.

Sender Name

The senders name. This field is required.

Sender Address

The senders email address. This field is required.

Recipient(s)

The recipient email addresses. Delimit multiple with a semi-colons (;). This field is required.

Cc:

The Cc email addresses. Delimit multiple with a semi-colons (;). This field is required.

Bcc:

The Bcc email addresses. Delimit multiple with a semi-colons (;). This field is required.

Content Page

Configure content settings of the email.

SMTP Task Editor - Content Page

Subject:

The subject of the email. This field is required.

Priority:
The priority of the email. The following options are available:
  • Low
  • Normal
  • High
Encoding:
The encoding of the subject and the body of the email. 
Body:

The body of the email.

Is Body Html:

If checked, the body of the email will be rendered as HTML.

Launch Advanced Editor:

When clicked, a new dialog will open that is similar to the HTML Merge component. Here you can design and preview the HTML body and even merge variable values.

Attachments Page

Configure attachment settings of the email. Add attachments by clicking the green '+' and remove attachments by clicking the red '-'.

SMTP Task Editor - Attachments Page

Name

The name of the attachment. Note the name should include the desired file extension (.txt, .png, etc).

Path

The path to the file you wish to attach to the email.

Error Handling page

SMTP Task Editor - Error Handling Page

The only option is Continue On Error. If this is true and an error occurs a warning will be fired but package execution will resume.