Sending Email using Script Task

  • 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 (smtp.live.com) 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 (smtp.live.com) 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.

  • Can anyone help with this. I would like help with this as well.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply