If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > CDONTS Error 0x800A0046: Permission Denied - Please Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-05-03, 13:01
rbwheat rbwheat is offline
Registered User
 
Join Date: Nov 2002
Location: Fullerton, CA
Posts: 1
Red face CDONTS Error 0x800A0046: Permission Denied - Please Help

I am trying to create a form on my company intranet that sends an email of the results after the user submits the data. Unfortunately, users can't send mail because of a Permission Denied error. Specifically, I get the following: Microsoft VBScript runtime (0x800A0046) Permission Denied /mailform.asp line 84.

The CDO code reads as follows:

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = strTo
objCDO.From = strFrom

objCDO.Subject = strSubject
objCDO.Body = strBody

Line 84 -->objCDO.Send

At line 84 the program craps out. I can send mail using my administrator's account. However, regular users can't. I have granted read and Execute, read, write and modify permissions on the Inetpub directory and propegated permissions down the directory tree. I have also added permissions to the CDONTS.DLL file in the windows/system32 directory. Can someone please help?

Thanks,

Brian
Reply With Quote
  #2 (permalink)  
Old 09-09-03, 16:31
unatratnag unatratnag is offline
Registered User
 
Join Date: Jul 2003
Location: Ohio/Chicago
Posts: 75
To use this component to send e-mail you also need the SMTP Server that ships with IIS 4 or 5 installed on the web server. The SMTP server is usually installed by default with the standard IIS installation.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On