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 = "QUESTION"
st = Request.Form("st"
Dim ObjMail ' This bit creates the Mail variable
Set ObjMail = Server.CreateObject("CDONTS.NewMail" ' This bit starts the email creation
ObjMail.To = "mart@hey.to" ' This is where the question is sent to
ObjMail.From = "mart@hey.to" 'Place any email address here. Use the same as To if you like
ObjMail.Subject = "Knowledgebase Question" '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 "thanks.asp" ' 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?**********
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 = "QUESTION"
st = Request.Form("st"
Dim ObjMail ' This bit creates the Mail variable
Set ObjMail = Server.CreateObject("CDONTS.NewMail" ' This bit starts the email creation
ObjMail.To = "mart@hey.to" ' This is where the question is sent to
ObjMail.From = "mart@hey.to" 'Place any email address here. Use the same as To if you like
ObjMail.Subject = "Knowledgebase Question" '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 "thanks.asp" ' 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?**********