Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Sending Email using Script Task Expand / Collapse
Posted Saturday, February 9, 2013 3:34 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, September 22, 2015 8:28 AM
Points: 44, Visits: 216
I have a problem which seems quite common.
I would like to be able to send emails for error alerts from my SSIS package in the case of failure or at times I would like to send an email of a result from a database query. i am just trying to practice the technique. I am able to setup and send Database Mail but this is quite different from sending mail in a SSIS package.

I am using hotmail ( as my host and port 587.

What I would like to do is to send emails using the SendMail task in SSIS to send emails when package fails or to send results sets either by attachments or in the body of the email or even with message as html. I really want to learn this technique and get it working.

The problem is I am not good with VB or C# and only just learnig, I have seen many examples on the internet but many are very complicated and difficult to recode for my situation.
All I am looking for is, for starters is a simple code to put in the script task (preferable C# but VB is fine as well)
that uses ( port 587 to send out an email since the Send mail Task seems to lack these capabilities.

I do welcome screen shots examples of a package using this functionality if possible.
I am close to getting a solution working but many times the code on the internet is so complicated and does not show exctly where to put your username password or host name.
As you can tell I am sort of a Novice to C#, Vb and using the script task.

Your help would be greatly appreciated.
Post #1417996
Posted Wednesday, March 16, 2016 2:56 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, October 4, 2016 3:24 PM
Points: 3, Visits: 39
Can anyone help with this. I would like help with this as well.
Post #1770075
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse