I am working on a SSIS Package in which I need to send an email to all those users whose email id will be retrieved after executing a Stored Procedure in the email id column
624191 Accepted Test [email protected]
624870 Accepted Rejected [email protected]
624870 Cancelled Pending [email protected]
Basically I need to send an email to all 3 email ids.
Steps followed:
- created
SQL Execute task
to execute the SP and created a output variable. - created a
foreach
loop container and calling that variable from foreach through ADO enumerator. - if I put the send email task in to the
foreach
loop container then I need to put a emailid in the TO section but I don't know how to call those email id from stored procedure directly. - I dont know what to put in a Script task.