dbTalk Databases Forums  

Send mail

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Send mail in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Davoli
 
Posts: n/a

Default Send mail - 12-05-2005 , 03:05 PM






I can drag and drop the Send Mail task in a dts package and use it to send
mail to a specific person and it works. The question is, how can I use it to
send multiple emails to various email addresses using a select from a table?
Anotherwords, how can I do a select from a table and use the result set to
populate the TO email address and send out to multiple email addresses?

--
Chris Davoli


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Send mail - 12-05-2005 , 04:18 PM






Chris Davoli wrote:
Quote:
I can drag and drop the Send Mail task in a dts package and use it to send
mail to a specific person and it works. The question is, how can I use it to
send multiple emails to various email addresses using a select from a table?
Anotherwords, how can I do a select from a table and use the result set to
populate the TO email address and send out to multiple email addresses?

Wouldn't it be easier to use use a (extended) stored procedure and wrap
this in a loop or cursor in T-SQL? See http://www.sqldev.net for a
reliable SMTP xp, xp_smtp_sendmail.


--
Darren
http://www.sqldts.com
http://www.sqlis.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.