Runtime Error '800a0046' Using the Send Method of CDONTS.NewMai

ID: Q197619


The information in this article applies to:


SYMPTOMS

When you try to send mail using the CDONTS.NewMail object from the SMTP service included in the Windows NT Option Pack (NTOP) and Active Server Pages (ASP), you may receive the following error message:

Microsoft VBScript runtime error '800a0046'
Permission denied
/filename.asp, line xxx

where xxx is the line number using the send method of the NewMail object.


CAUSE

This behavior can occur if the anonymous user account is not granted at least CHANGE permissions to the SMTP mail server folders.


RESOLUTION

To resolve this error, follow these steps:

  1. Open the Windows NT Explorer and browse to your mail folders. By default this is the X:\InetPub\MailRoot folder, where X: is the drive that you specified during the installation of NTOP.


  2. Right-click the MailRoot Folder, and then click Properties.


  3. Click the Security tab.


  4. Click the Permissions button.


  5. If the anonymous Web user account is listed, <IUSR_COMPUTERNAME> is the default, skip to step 14.


  6. Click the Add button.


  7. Select your computer in the "List Names From:" drop-down menu.


  8. Click the Show Users button.


  9. Highlight the anonymous user account, and then click the Add button.


  10. Click CHANGE in the Type Of Access drop-down menu.


  11. Click the OK button to close the Add Users And Groups dialog.


  12. Click the OK button to close the Directory Permissions dialog.


  13. Click the OK button to close the Directory Properties dialog.


  14. Repeat steps 2 through 13 for each folder under the MailRoot folder.




Keywords          : 
Version           : WINNT:4.0
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: April 30, 1999