Solved

SEND Email via DTS Package

Posted on 2008-10-09
4
723 Views
Last Modified: 2013-11-30
I want to create a dts package that will run a query to acquire the email addresses.  I then want to email these people a message. The addresses can change, but the Subject and Message of the email will pretty much be the same. This is my first time working with DTS Packages. I'm not sure the best way to go about this?
0
Comment
Question by:slrine2000
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 22680576
0
 

Author Comment

by:slrine2000
ID: 22686316
I'm trying this:
Exec master.dbo.xp_Sendmail @recipients  = @mailTo, @copy_recipients = @mailCC,
@subject = @mailSubject, @message = @mailBody, @user='dbo'

However I'm getting this error: xp_sendmail: Invalid parameter '@user'
In help it says the parameter should be @set_user but if I try that then it says parameter @user is required.
Any ideas?
0
 

Author Comment

by:slrine2000
ID: 22686401
Disregard last post, I got it to work. I didn't have the SQL Service running with a valid account. I also removed the @user and it worked.
0
 

Author Closing Comment

by:slrine2000
ID: 31504749
Thanks for pointing me in the right direction
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now