S
Seeker
Hi!
I have to do some developing and I'm trying to configure my server to mimic
the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.
I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.
The object appears to be created properly, but I get an error when the SEND
method executes. (Error and Code shown below)
Obviously I'm missing something else here... Can anyone lend a hand?
Microsoft VBScript runtime error '800a0046'
Permission denied
/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...
I have to do some developing and I'm trying to configure my server to mimic
the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.
I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.
The object appears to be created properly, but I get an error when the SEND
method executes. (Error and Code shown below)
Obviously I'm missing something else here... Can anyone lend a hand?
Microsoft VBScript runtime error '800a0046'
Permission denied
/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...