Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have a send mail task which sends the excel as attachment. We have couple of ids in CC, BCC and to. I want to configue send mail task dynamically using package configuration, So it takes all ids, message subject, and messageSourse dynamically. How to achieve this in SSIS?

I have to configure that smtp connection also through package configuration.
How to achieve this in SSIS?

Thanks in advance
Posted
Updated 10-Jun-15 2:53am
v2

1 solution

Hi There,

I don't have much idea on SSIS, but the solution which i suggest is to create a simple scheduler service (windows service) and trigger the package through this service after whatever specific time intervals.

You can have CC,BCC,Subject Line and Mail Body as variables configured in SSIS package which can be populated as required from c# code.

Basically add user variables at the package level and then use the expression editor of the message source in the send mail task.

Let me know if you need any help on this.

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900