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!

submitting forms via CDO 1

Status
Not open for further replies.

scottRen

Technical User
Feb 4, 2005
69
CA
Hi, i'm hoping someone can help me get windows2003 set for smtp. I went into control panel and installed component, under details of iis6, of smtp. it asked for my disk and everything worked, i have an asp page that creates the cdo object like so:
Set myMail=CreateObject("CDO.Message")

When i go to the form onLine i get error of:
VBScript runtime error '800a0046'
Permissions denied: 'CreateObject'

I'm newish to this... so all i did was install the component off the disk... is there something i need to do in iis6?


Code:
'asp code

email = Request("email")

Set myMail=CreateObject("CDO.Message")
Mail.Subject = "Web Contact Form"
myMail.From=email
myMail.To="my@email.com"
myMail.TextBody="testing"

		strErr = ""
		bSuccess = False
		On Error Resume Next ' catch errors
		Mail.Send	' send message
		If Err <> 0 Then ' error occurred
			strErr = Err.Description
		else
			bSuccess = True
		End If
%>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top