Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

This question already has an answer here:

I'm just getting into sql-server SSIS, so forgive me if this is a basic question. Use the SSISwant to send mail from gmail smtp server.

Smtp host =smtp.gmail.com 
port=587 ,
From_Mail_ID=xyz@gmail.com,
To_Mail_ID=abc@gmail.com,

Using the above information I want to send mail from SSIS. How do I use SSIS to do this?

If have any questions please ask.

share|improve this question
add comment

marked as duplicate by Mark Storey-Smith, RolandoMySQLDBA, StanleyJohns, Paul White, dezso May 29 '13 at 9:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

There is a built in task for sending SMTP mail in SSIS. If you want to use a script task to send mail via SMTP the post below lists several ways to do what you are looking to do.

http://social.msdn.microsoft.com/Forums/en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8

share|improve this answer
    
Jason Cumberland Thanks for reply,need helping hand on script task,plz show some syntax or helpful example on script task to send mail . –  shamim Feb 2 '12 at 4:03
    
@shamim sriharik.blogspot.com/2008/08/… That should work in SSIS 2005, since you're limited to VB.NET only. –  Brandon Feb 2 '12 at 15:13
    
Here's a VB.Net example. pragmaticworks.com/help/dtsxchange/scr/… –  Jason Cumberland Feb 2 '12 at 16:14
add comment

As Jason Pointed out, that to send email using SSIS, you have to use Script Task.

Below links with scripts will help you out.

  1. Send Mail in SSIS using GMail
  2. Send Email from SSIS with option to indicate Email User and Password
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.