Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 sql mail problem

Author  Topic 

bobz_0585
Yak Posting Veteran

55 Posts

Posted - 2009-12-10 : 06:22:37
hello all i have this wierd problem using xp_sendmail
now i have sql server 2000 on my server and i installed outlook 2000(took my a while to find but i was told it works finaly for that stored procedure
now when i run this code

declare @recipients nvarchar(50)
set @recipients='i.shoujaa@skyband.com.sa'
declare @message nvarchar(500)
set @message='Speed Violations: '
declare @query nvarchar(1000)
set @query='select messageunit,max(messagespeed)as speed from ARAM_Tracker.dbo.tbgpsmessage where messagespeed>71 and messaegcreationdate>dateadd(hour,-48,getdate()) group by messageunit'
--exec master..xp_stopmail

exec master..xp_startmail
EXEC master..xp_sendmail
@recipients ,
@message ,
@query;
exec master..xp_stopmail
i get the following error
SQL Mail session started.
Msg 18025, Level 16, State 1, Line 0
xp_startmail: failed with mail error 0x8004010f
Msg 18025, Level 16, State 1, Line 0
xp_sendmail: failed with mail error 0x80004005
Stopped SQL Mail session.
i have no idea what mistake am i doing please help

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-12-10 : 06:27:56
Hi

Refer this...
http://support.microsoft.com/default.aspx?scid=kb;en-us;555180

-------------------------
R...
Go to Top of Page
   

- Advertisement -