Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS errror IIS 6? 1

Status
Not open for further replies.

dkmart

IS-IT--Management
Mar 13, 2002
66
SE
I get an error like this:
Microsoft VBScript runtime error '800a0046'

Permission denied

/kb/mail.asp, line 23

In a .asp file that looks like this:
<%

' This bit gets the question from the form
Dim stname,st
stname = &quot;QUESTION&quot;
st = Request.Form(&quot;st&quot;)

Dim ObjMail ' This bit creates the Mail variable

Set ObjMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;) ' This bit starts the email creation

ObjMail.To = &quot;mart@hey.to&quot; ' This is where the question is sent to

ObjMail.From = &quot;mart@hey.to&quot; 'Place any email address here. Use the same as To if you like

ObjMail.Subject = &quot;Knowledgebase Question&quot; 'This is what appears in the subject

'This bit slots the form result into the email

ObjMail.Body =stname & vbcrlf&_
st

ObjMail.Send 'This bit sends the mail

Set ObjMail = Nothing 'This finishes off and closes CDONTS

Response.Redirect &quot;thanks.asp&quot; ' This redirects to your thank you page


%>

I have registered the cdonts.dll file.


Please help!

/DKMart

Need help please.


**********Who is General Failure, and why is he reading my disk?**********

 
Thanks,
Just noticed that i did not install SMTP service......
Installed it and it works just fine.

Thanks again.

/DKMart

**********Who is General Failure, and why is he reading my disk?**********

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top