Forums

This topic is locked

CDO mail problem

Posted 12 Mar 2001 17:16:44
1
has voted
12 Mar 2001 17:16:44 Aaron Jay posted:
I am trying to have a form be submitted and emailed using CDO, and I am
receiving the following error:


Microsoft VBScript runtime error '800a0046'
Permission denied
emailthanks.asp, line 11

Does this mean that my code is off? or is there a permission needed to be
set on the server?

The code is as follows from line 5:

Set myCDONTS=Server.CreateObject("CDONTS.New.Mail"
strFrom = "Request.Form('email')"
strTo = "Request.Form('name')"
myCDONTS.send
strFrom, strTo
Set myCDONTS = Nothing.


Thi is set up on a remote server, NT based.

Replies

Replied 14 Mar 2001 23:39:16
14 Mar 2001 23:39:16 George Petrov replied:
Are you sure your code is correct?

You have:

Server.CreateObject("CDONTS.New.Mail"

And it should be:

Server.CreateObject("CDONTS.NewMail"

(with oout the point between "New" and "Mail"


Greetings,
George Petrov
www.UDzone.com

Reply to this topic