Solved

SEND Email via DTS Package

Posted on 2008-10-09
4
730 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

734 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