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. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 
port=587 ,,,

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

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.

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.

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… 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.… – Jason Cumberland Feb 2 '12 at 16:14

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

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