If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Send Mail Task Failing in DTS Package

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-12, 11:52
gedalya gedalya is offline
Registered User
 
Join Date: Jan 2012
Posts: 1
Send Mail Task Failing in DTS Package

I have a DTS package in SQL Server 2000 that has a Send Mail task to shoot me an email when it completes. When I tested this manually it ran fine however when it runs as a scheduled job in the SQL Agent the Send Mail task fails. I think a little background would help; prior to being able to send emails I installed Outlook so I could build a MAPI profile. With the MAPI profile there I am able to create and at least manually test a Send Mail task. From experience I believe this issue arises due to the fact that when I'm logged in Outlook is running but when I'm logged out of the Server, it is not running and so the task fails. Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 01-09-12, 12:49
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
It will be useful for you to share the full failure details that SQL Server Agent reports as this may include an error message hinting to the problem.

If I had to guess I would say:

You have set up a MAPI profile for your user account and this works...
You have not set up a MAPI profile for the user account that SQL Server Agent runs as.
__________________
George
Twitter | Blog
Reply With Quote
Reply

Tags
dts, send mail, sql agent, sql server 2000

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On