all groups > sql server dts > november 2005 >
You're in the

sql server dts

group:

Send Mail Task iteratively in DTS package



Send Mail Task iteratively in DTS package Chris Davoli
11/18/2005 9:36:03 AM
sql server dts: I have a requirement to select records from a sql table that has email
addreses in each record and send a formatted email to each person. There
needs to be a separate salutation in the body for each email person, so each
email body will be different for each person. Is there an article out these
on how to use SEND Mail in a DTS package to do this? I'm thinking about a way
to do this in an Execute SQL Task. Any articles out there?

--
Chris Davoli
Re: Send Mail Task iteratively in DTS package Darren Green
11/19/2005 9:59:07 AM
[quoted text, click to view]

Changing the DTS Send Mail Task
(http://www.sqldts.com/default.aspx?235)


I suggest you do this all in T-SQL, as I think it would be much simpler.
Have a look at xp_smtp_sendmail for a very good mail sending proc.

XPSMTP
(http://www.sqldev.net/xp/xpsmtp.htm)



--
Darren
http://www.sqldts.com
RE: Send Mail Task iteratively in DTS package mattb
11/22/2005 11:20:01 AM


[quoted text, click to view]

in actvex task you can pull data from dbase
load array or recordset
loop for data in rs or array and add salutation with if stmt or have it in
rs from dbase
AddThis Social Bookmark Button