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)
 xp_smtp_sendmail

Author  Topic 

arghya_mp
Starting Member

1 Post

Posted - 2006-09-06 : 05:56:39
I downloaded and copied xpsmtp80.dll to Microsoft SQL server/MSSQL/BINN/DLL folder from www.sqldev.net. I am using SQL Server 2000. Then I registered using
exec sp_addextendedproc 'xp_smtp_sendmail', 'xpsmtp80.dll'.
Then I granted permission using
grant execute on xp_smtp_sendmail to public.
Then I am trying to execute
declare @rc int
exec @rc = master.dbo.xp_smtp_sendmail
@FROM = N'MyEmail@MyDomain.com',
@TO = N'arghya@rivalogic.in',
@subject = N'My first HTML mail',
@message = N'<HTML><H1>This is some HTML content</H1></HTML>',

@type = N'text/html'
select RC = @rc
go
But the message is showing like this
ODBC: Msg 0, Level 16, State 1
Cannot load the DLL xpsmtp80.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.).

(1 row(s) affected)

I could not understand where is wrong. please help me.


Arghya Mahapatra
Junior Web Developer
Riva Logic Pvt. Ltd.

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-09-06 : 09:41:51
what is the exact path of where you copied the DLL? it should be something like C:\program files\microsoft sql server\MSSQL\Binn



-ec

Go to Top of Page
   

- Advertisement -