dbTalk Databases Forums  

How to execute a DTSSendMailTask from within a package?

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


Discuss How to execute a DTSSendMailTask from within a package? in the microsoft.public.sqlserver.dts forum.



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

Default How to execute a DTSSendMailTask from within a package? - 05-11-2004 , 10:56 AM






I need to create a DTS package that will email a file as an attachment to multiple recipients. The problem that I encountered in the past was that if any recipient in ToLine was no longer, the whole task would fail. This time I created a DTSSendMailTask and modified its properties (except ToLine) programmatically using DTSActiveScriptTask. Now I want to either

- Execute the DTSSendMailTask for each recipient as many times as necessary, changing ToLine to one recepient at a time, o

- Try to resolve each recipient's name and rebuild ToLine, excluding those that failed to resolv

Neither method worked. Attempt to use Task.Execute returned something like "Invalid method or property assignment", CustomTask.Execute returned something like "Invalid number of arguments" (although none should be required), and attempt to resolve names one by one resulted in general MAPI errors.

Anybody who has experience sending emails from a script within a DTS package, please help

Thanks

Le


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.