Click to See Complete Forum and Search --> : CDONTS problem


masi
01-03-2003, 02:41 AM
i am trying to create an email page using vbscript's cdonts on an asp page
i am running iis and i get this error :
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/vb/email.asp, line 9

now i made sure that my server was set to run asp pages, and i dont understand
why it says accessed denied. the line 9 it refers to is where there is my
myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")

any help would be appreciated, i dont understand why it says access denied

thanx, masi

Michael
01-03-2003, 08:26 PM
Masi,
Assuming the CDO component is installed on the server since you didnt get
an object error, What did you set your mail properties to?
myMail.FROM
myMail.TO
etc.

These properties need values. It needs a FROM address and if you dont set
the TO address then you need to pass the TO address as an argument to the
send() method of your myMail object.
If you still have trouble paste your code from createObject() to myMail.send
here.

Good luck and let me know if you have questions,

Michael
Runtime Web Development
San Diego

"masi" <webdev.@127.0.0.1> wrote:
>
>i am trying to create an email page using vbscript's cdonts on an asp page
>i am running iis and i get this error :
>Error Type:
>Microsoft VBScript runtime (0x800A0046)
>Permission denied
>/vb/email.asp, line 9
>
>now i made sure that my server was set to run asp pages, and i dont understand
>why it says accessed denied. the line 9 it refers to is where there is my
>myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")
>
>any help would be appreciated, i dont understand why it says access denied
>
>thanx, masi

Paul Clement
01-06-2003, 08:44 AM
On 2 Jan 2003 23:41:18 -0800, "masi" <webdev.@127.0.0.1> wrote:

¤
¤ i am trying to create an email page using vbscript's cdonts on an asp page
¤ i am running iis and i get this error :
¤ Error Type:
¤ Microsoft VBScript runtime (0x800A0046)
¤ Permission denied
¤ /vb/email.asp, line 9
¤
¤ now i made sure that my server was set to run asp pages, and i dont understand
¤ why it says accessed denied. the line 9 it refers to is where there is my
¤ myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")
¤
¤ any help would be appreciated, i dont understand why it says access denied

See the following MS KB article:

PRB: Permission Denied While Using CDONTS to Send Mail with Exchange
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q228465


Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)