Forums

ASP

This topic is locked

Auto email CDO object

Posted 24 Jul 2001 11:59:08
1
has voted
24 Jul 2001 11:59:08 Bec C posted:
I am building a system to auto email users.

Using this code:

<%@LANGUAGE="VBScript"%>
<%

Dim objCDO
Set objCDO = server.CreateObject("CDONTS.NewMail"

objCDO.To = " "
objCDO.From = "Tester!"

Dim txtSubject

textBody="Hopefully this email will get to me!!"

objCDO.Subject= "Tester"
objCDO.Body=txtBody
objCDO.Send
%>

but I receive this error:

Microsoft VBScript runtime error '800a0046'

Permission denied

/auto_email.asp, line 16


I did read somewhere (but I can't remember where) that some servers are not set in the registry to create an instance of the CDO email object?

Can anybody put me right on this issue?

Replies

Replied 24 Jul 2001 15:40:44
24 Jul 2001 15:40:44 Joel Martinez replied:
well, I think that this one is gona have to handled by the server administrator... if that's you, then you may want to search the harddrive for the cdonts.dll file.
- if it's not there, then that's your problem, you need one.
- if it is there, then you may want to try re-registering the file:
<b>regsvr32.exe "c:/winnt/system32/cdonts.dll"</b>

and if you're not the administrator, then you need to speak to the adminsitrator to fix the issue...

Joel Martinez

----------
Is this thing on?....
Replied 24 Jul 2001 15:46:53
24 Jul 2001 15:46:53 Bec C replied:
WHere would I get the cdonts.dll file from if it is not present on the server?

Thanks

Replied 24 Jul 2001 16:18:50
24 Jul 2001 16:18:50 Joel Martinez replied:
well, I guess I could just email it to ya... if you need it, just email me and tell me what server you've got (NT4/2k)


Joel Martinez

----------
Is this thing on?....
Replied 26 Jul 2001 12:09:56
26 Jul 2001 12:09:56 Bec C replied:
I managed to get hold of the administrator of the server.

The .dll was present and he did re-register the dll.

I am still receiving the permission denied message.

Could there be anything else wrong?

Thanks

Replied 12 Dec 2007 12:18:45
12 Dec 2007 12:18:45 gerry de leon replied:
Microsoft VBScript runtime error '800a0046'

Permission denied

Error while using Cdonts.dll in win 2003 server edition sp2.

The answer is click on SMTP Server properties and then go to security tab and then go to Grant Operator permission to these windows user accounts and add the anonymous user. All the other previous steps should also be considered like adding cdonts.dll to winnt/system32 folder and regsvr32 and then, restart iis or iisreset and then if still not working, enable anonymous right to cdonts.dll and restart iis. check the stmp server i.p. address if it pinging from your side and use the domain name of that i.p. address to configure in stmp server properties.


Regards,

Gerry De Leon

What's on line 16?

Ray at work

"Jason" &lt; &gt; wrote in message
news: oups.com...[color=blue]
&gt; it works from my logon (domain admin account), but everyone else gets
&gt;
&gt; Microsoft VBSCript runtime error '800a0046' Permission denied
&gt; path/patj/script.asp line 16
&gt;
&gt; I looked at a lot of articles and gave the IIS accounts full access to
&gt; the mailroot folder, along with the 'regular' domain user account I am
&gt; using to test... still no good.
&gt; also to the directory in which the script(s) reside
&gt; Anyone have a definitive answer on the permissions need to run these
&gt; scripts?
&gt;
&gt; We started having this problem after I migrated to Windows 2003
&gt; Server/IIS 6
&gt;
&gt; Thanks in Advance
&gt;
&gt; -J




Replied 12 Dec 2007 12:20:03
12 Dec 2007 12:20:03 gerry de leon replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I managed to get hold of the administrator of the server.

The .dll was present and he did re-register the dll.

I am still receiving the permission denied message.

Could there be anything else wrong?

Thanks


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic