Search code examples
asp-classicsmtpcdonts

Error in class referring - CDONTS


I get an error at the following line in my application:

'create NewMail object'
Line 96: Function SendHTMLEMail (strFrom, strTo, strCC, strSubject, strBodyHTML)  
Line 97: Set objNewMail = Server.CreateObject("CDONTS.NewMail")

The error is:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string 
/Utils.inc, line 97

I have added interop.CDONTS.dll to the references of application, but still I am getting same error.

I am not sure if this functionality is used in any other page and is working.

I use .NET 2003 framework 1.1, and the server is running Windows Server 2003


Solution

  • I got the solution. I added a new CDONTS.dll and registered it using

    regsvr32 C:\SYSROOT\system32\cdonts.dll

    This solved the problem. No need of adding it to the references.