?
Solved

SEND Email via DTS Package

Posted on 2008-10-09
4
Medium Priority
?
732 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 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

777 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