Included in SSIS PowerPack

SSIS Send HTML Email Task

Send HTML emails from SSIS through any SMTP server, with placeholders and recordset tables.

SSIS Send HTML Email Task is a free task for sending newsletters and great-looking HTML emails from SSIS. It connects to any SMTP server with a user name, password and port, so you are not tied to your company mail server, and auto-expanding placeholders let you build flexible email templates without writing SSIS expressions.

Send HTML Email Task is free in every edition. The same download also includes a trial of the paid PowerPack components

Send HTML Email Task in SSDT
Send HTML Email Task - ssis sending results as body of email
Placeholders for variables, dates, currency and a recordset table in the bodyExplore the UI →

Trusted by data teams worldwide

MicrosoftIBMOracleDell TechnologiesHPCiscoAT&TVerizonDHLFedExUPSWalmart

Also rated on Capterra★★★★★ , Trustpilot★★★★★ and BBBA+ — see why teams trust ZappySys

At a glance

What Send HTML Email Task can do

SSIS Send HTML Email Task is a free task for sending newsletters and great-looking HTML emails from SSIS. It connects to any SMTP server with a user name, password and port, so you are not tied to your company mail server, and auto-expanding placeholders let you build flexible email templates without writing SSIS expressions.

HTML email from text or template

Send HTML formatted emails, such as newsletters, from direct text, a template file or a variable.

  • MessageSourceType: direct value, file connection or variable
  • IsHtmlEmail: HTML or plain text

Task properties

Variable placeholders

Type an SSIS variable anywhere in the body or subject and it is replaced by its value at runtime.

  • Example: {{User::varFirstName}}
  • No need to build SSIS expressions
  • Format specifiers, e.g. {{System::StartTime,yyyy-MM-dd}} or {{System::LocaleID,C}}

Task help

Recordset as HTML table

A RowSet variable placeholder automatically expands into an HTML formatted table in the email.

  • Works with a Recordset or DataTable from Execute SQL Task or Script Task
  • Dates and currency are formatted in the table

See the screenshots

CSS styling & preview

Edit the CSS style for generated tables and preview the email before sending.

  • DefaultStyle sets the table CSS
  • Preview button in the task UI
  • Send Test button

See the screenshots

Custom SMTP connection

Use the ZS SMTP Connection Manager with user name, password and port, options not present in the native SSIS Email Task.

  • Custom port and EnableSsl
  • Anonymous or user name / password authentication
  • Test Connection with a test email

SMTP Connection help

Recipients, attachments & priority

Set the sender, recipients, attachments and priority of the email.

  • To, Cc, Bcc: comma separated addresses
  • Attachments: separate multiple files with a vertical bar
  • EmailPriority

Task properties

Logging control

Control how much information is logged during package execution.

  • LoggingMode: set to Debugging for maximum log

Task properties

SQL Server 2012–2025 & ADF

Runs in your environment on SQL Server 2012–2025 and Azure-SSIS.

  • SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit)
  • Azure Data Factory (SSIS IR)
  • Design packages in Visual Studio 2017, 2019, 2022, or 2026
  • Windows only (64-bit OS): Windows 7–11 or Windows Server 2012–2025

Compatibility and requirements

See all features
  • Send HTML Formatted email from direct text or template file
  • Support for Placeholders (e.g. type {{User::varFirstName}} anywhere in Body or Subject)
  • Date and currency format specifiers in placeholders (e.g. {{System::StartTime,yyyy-MM-dd}})
  • Send newsletters or mass emails to customers
  • Support for Custom SMTP connection manager which allows you to enter UserID, Password and Port
  • SSL and anonymous authentication options on the SMTP connection
  • Support for RowSet variable placeholder that expands as an HTML formatted table (Recordset or DataTable)
  • Edit the default CSS style for generated tables
  • Preview the email in the task UI
  • Email body from a variable, a file or direct input
  • To, Cc and Bcc with multiple comma separated addresses
  • Attach multiple files
  • Set email priority
  • Send a test email from the task UI
  • Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit) and Azure Data Factory

Runs in your environment ·

SQL Server 2012–2025

and Azure-SSIS · Read the FAQ

How it works

From the toolbox to your first run.

Key steps from the Send HTML Email Task page and help file, with the screens you will see in SSDT.

Write the body with placeholders, not expressions.

Pick the ZS SMTP connection, fill in From, To, Subject and priority, and type the body as HTML. Insert Variable adds placeholders such as {{System::PackageName}}, formatted values like {{System::StartTime,yyyy-MM-dd}} or {{System::LocaleID,C}}, and a recordset table with {{User::varResult,table}}.

  • Body from direct text, a template file or a variable
  • table_no_encode outputs the table without HTML-encoding
  • Send Test button in the editor
Send HTML Email Task - placeholders and recordset table in the body

Inside the UI

Key settings, as they appear in SSDT.

Real screens from the Send HTML Email Task product page. Step through them, or open any shot at full size.

Add Execute SQL Task and the email task

Drag Execute SQL Task and ZS HTML Email Task from the SSIS Toolbox and join them; the SQL task supplies the recordset.

Compatibility and requirements

Designed to stay inside your SSIS runtime.

  • SQL Server 2012 through 2025, 32-bit and 64-bit
  • Windows only, 64-bit OS required. SQL Server Express and Web editions do not include SSIS
  • Azure Data Factory SSIS Integration Runtime
  • Self-hosted: credentials and data stay in your environment (external API calls still reach that service)
  • Fully functional 30-day trial of SSIS PowerPack

FAQ

Questions teams ask before they drop Send HTML Email Task on the canvas.

What is Send HTML Email Task?

SSIS Send HTML Email Task is a free task for sending newsletters and great-looking HTML emails from SSIS. It connects to any SMTP server with a user name, password and port, so you are not tied to your company mail server, and auto-expanding placeholders let you build flexible email templates without writing SSIS expressions.

Is Send HTML Email Task free?

Yes. It is included in the FREE edition of SSIS PowerPack, as well as in the Standard, Professional and Enterprise editions. See compare editions.

How do I email query results as a table?

Run an Execute SQL Task with ResultSet set to Full result set and map result 0 to an Object variable (e.g. varResult). In the email body add {{User::varResult,table}}; it expands to an HTML table at runtime. Use table_no_encode if the data already contains HTML.

Can I format dates and numbers?

Yes. Add a .NET format specifier after the variable name, for example {{System::StartTime,yyyy-MM-dd}} for a date or {{System::LocaleID,C}} for currency.

Which SMTP settings are supported?

The ZS SMTP Connection Manager takes the server, a custom port, SSL, and anonymous or user name / password authentication, and can send a test email. The help notes that custom port and user name / password are not in the native SSIS SMTP connection.

Can I send to several people and attach files?

Yes. To, Cc and Bcc take comma-separated addresses, and Attachments takes several files separated by a vertical bar. You can also set the email priority.

How do I style the email?

Use Edit Style to change the default table CSS, or place a <style> block first in the body. See Some tips for the SSIS Send HTML Email Task.

Which SQL Server versions can I run it on?

SQL Server 2025, 2022, 2019, 2017, 2016, 2014, and 2012 (32- and 64-bit), plus Azure Data Factory with an SSIS Integration Runtime (packages must target SQL Server 2017). See Compatibility and requirements.

Independent ratings

Trusted by data teams, recognized by the industry

See why teams trust ZappySys (opens in new tab)

What customers say

  • Customer story

    ZappySys has been a fantastic way to bring our small company into the world of APIs, automation, and systems integration by providing tools within an easy-to-use framework.

    Ben KingeryOxspring Paul
  • Customer story

    At Synchronous Customers, we need to connect various types of data quickly. The super handy ZappySys connectors and great documentation let us do it without writing a lot of code.

    Joel ConnerSynchronous Customers
  • Customer story

    I looked everywhere for a product that could integrate to a web portal backend API via JSON. After many attempts, ZappySys was the only solution that gave me all the options I needed in a quick & clean interface within SSIS.

    Maz DunicSave the Children Australia
  • Customer story

    We have worked with the ZappySys support team for over a year and have consistently found them extremely helpful — resourceful and creative in offering multiple solutions to our challenges.

    Senthil SekarPublicis Groupe
  • Trustpilot

    I’ve been using ZappySys for over 6 years — it makes development faster, and I introduced it to my current company.

    Anna JohnsonTrustpilot review
  • Trustpilot

    I’m integrating data from APIs into database tables with SSIS/ZappySys — very easy to use, fast, and highly efficient without writing complex code.

    Carolyn S.Trustpilot review
  • Customer quote

    I submitted a support request and had someone logged in and fixing things within 2 hours.

    Barry Wilson
  • Customer quote

    The REST source is very powerful — the only thing I found I could use after trying components from major vendors.

    Jes KirkupKTC
  • Customer quote

    Whenever we run into an obstacle, ZappySys has a solution for us. We are so glad that we chose ZappySys PowerPack.

    Kevin ChenBerricle

Free in every edition

Install SSIS PowerPack and drag Send HTML Email Task onto the Control Flow.

Send styled HTML emails with query results from SSIS, through any SMTP server.

  • Control Flow Task in SSISSend HTML Email Task appears in the toolbox after you install PowerPack.
  • Free to useSend HTML Email Task is included in the FREE edition of SSIS PowerPack.
  • Live supportQuestions? Talk to a ZappySys engineer.

Talk to an engineer before or during your trial.

1 / 6