Unanswered: 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:
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?
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.