﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / SSIS send mail question / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 02:12:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSIS send mail question</title><link>http://www.sqlservercentral.com/Forums/Topic1369041-364-1.aspx</link><description>I have done something similar to this.  Here's how I did.1.) For each loop through your table sending you e-mails.  Storing the EmailID you are working with in a user variable (i.e. User::EmailID). 2.) Execute your Send Mail Task3.) Execute SQL TaskIn your Execute SQL Task set the SQLStatment via the expressions tab.Your expression would look something like this.  Note I put single quotes around the variable and the date. "UPDATE dbo.table SET DatSent = '" + CSTR(GETDATE()) + "' WHERE EmailID = '" + User::EmailID + "'"There multiple ways to do this I just found this to be easier.Hope this helps,Eric</description><pubDate>Wed, 31 Oct 2012 11:12:41 GMT</pubDate><dc:creator>WillyWonka</dc:creator></item><item><title>SSIS send mail question</title><link>http://www.sqlservercentral.com/Forums/Topic1369041-364-1.aspx</link><description>I am trying to create a package that reads email data from a tables based on if an email has already been sent.The problem I'm having is updating the record after email acknowledgement from the SMTP server.First Issue: I have no idea how to capture that negotiation.Second Issue: Updating the table based on ID as to whether email sentUPDATE tblNotification SET datSent =getdate()WHERE ID = @P2 ---where @P2 is a parameter that comes down and is loaded into the ForEach container (ForEach ADO Enumerator)I'm having trouble finding somewhere a similar solution has been posted.Any ideas welcomed.Thanks,Keith</description><pubDate>Fri, 05 Oct 2012 07:38:50 GMT</pubDate><dc:creator>keithcorkran</dc:creator></item></channel></rss>