CDONTS - Knowledge Base Archives - Hivelocity Hosting https://www.hivelocity.net/kb/tag/cdonts/ Dedicated Servers, Private Cloud & Colocation Mon, 18 Dec 2023 15:24:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.6 CDONTS: Fix for error ‘800a0046’ Permission denied https://www.hivelocity.net/kb/cdonts-fix-for-error-800a0046-permission-denied/ https://www.hivelocity.net/kb/cdonts-fix-for-error-800a0046-permission-denied/#comments Sat, 13 Nov 2010 11:47:17 +0000 https://kb.hivelocity.net/?p=1302 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 …

CDONTS: Fix for error ‘800a0046’ Permission denied Read More »

The post CDONTS: Fix for error ‘800a0046’ Permission denied appeared first on Hivelocity Hosting.

]]>
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 Pickup folder, and then click Properties.
3. On the Security tab, click Permissions.
4. If the IIS user accounts are listed, IUSR_<computer> and IWAM_<computer> are the defaults, skip to step 13.
5. Click Add.
6. Select your computer in the List Names From: drop-down menu.
7. Click Show Users.
8. Highlight the IUSR_<computer> Internet guest account and the IWAM_<computer> impersonation account, then click Add.
9. Click Change in the Type Of Access drop-down menu.
10. Click OK to close the Add Users And Groups dialog.
11. Click OK to close the Directory Permissions dialog.
12. Click OK to close the Directory Properties dialog.
13. Repeat steps 2 through 12 for each folder under the MailRoot folder.

The post CDONTS: Fix for error ‘800a0046’ Permission denied appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/cdonts-fix-for-error-800a0046-permission-denied/feed/ 1
How do I use CDOSYS? https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/ https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/#respond Sat, 13 Nov 2010 11:07:01 +0000 https://kb.hivelocity.net/?p=1255 CDOSYS is a replacement for CDONTS and should be used instead of it. CDONTS has been removed from Windows 2003 and is no longer supported in Server 2003. A working example is below: Dim objMsg Dim objConfig Set objMsg = CreateObject(“CDO.Message”) Set objConfig = CreateObject(“CDO.Configuration”) Dim objFields Set objFields = objConfig.Fields ‘ Setup server information. …

How do I use CDOSYS? Read More »

The post How do I use CDOSYS? appeared first on Hivelocity Hosting.

]]>
CDOSYS is a replacement for CDONTS and should be used instead of it.
CDONTS has been removed from Windows 2003 and is no longer supported
in Server 2003. A working example is below:

Dim objMsg
Dim objConfig
Set objMsg = CreateObject(“CDO.Message”)
Set objConfig = CreateObject(“CDO.Configuration”)
Dim objFields
Set objFields = objConfig.Fields
‘ Setup server information. Comment out if using localhost
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserver”) = “mail.mysmtpserver.com”
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
objFields(“https://schemas.microsoft.com/cdo/configuration/sendusing”) = 2

‘ Setup server login information if your server require it. Comment out if using localhost
objFields(“https://schemas.microsoft.com/cdo/configuration/smtpauthenticate”) = 1
objFields(“https://schemas.microsoft.com/cdo/configuration/sendusername”) = “SMTPAUTHUser”
objFields(“https://schemas.microsoft.com/cdo/configuration/sendpassword”) = “SMTPAUTHPassword”

‘uncomment if using localhost.
‘objFields(“https://schemas.microsoft.com/cdo/configuration/sendusing”) = 1
‘objFields(“https://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory”)=”c:\inetpub\mailroot\pickup”

objFields.Update

‘ Now you can setup message to send
Set objMsg.Configuration = objConfig
objMsg.To = “tosomeone@somewhere.com”
objMsg.From = “fromme@domain.com”
objMsg.Subject = “Some subject”
objMsg.TextBody = txMessage

objMsg.Send
set objMsg = NOTHING

The post How do I use CDOSYS? appeared first on Hivelocity Hosting.

]]>
https://www.hivelocity.net/kb/how-do-i-use-cdosys-3/feed/ 0