Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Multiple Mails for a single SMTP task - Please help!

$
0
0
Hi,
    In my SSIS package, In the Package - PreExecute Event Handler, I have a for each loop container and a SQL task inside it.After the For each Loop container (Note : NOT inside the container- it is outside the container) there is a SMTP task which sends mail  if the value coming from SQL task o/p is less than getdate.I am doing this using expressions.

Now the problem is, instead of one error mail, I am getting 9 error mails.

Can you please tell me how can i get only one email?

I am using SQL 2012.

Thanks!

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>