Solved

SEND Email via DTS Package

Posted on 2008-10-09
4
728 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

820 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