Wednesday, May 24, 2006

ActiveX component can't create object: 'CDOnts.NewMail'

You might get "ActiveX component can't create object: 'CDOnts.NewMail' " error message when working with ASP pages - CDONTS object especially. Your asp page is supposed to send an email to ... from ... with ..... such and such message, but it chokes on creating the 'email object.'

RESOLUTION 1: Most likely, your \windows\system32\cdonts.dll in not registered - run regsvr32 c:\windows\system32\cdonts.dll to resolve

RESOLUTION 2: Copy cdonts.dll from a Win 2K machine to your System32 folder. Next, run regsvr32 c:\windows\system32\cdonts.dll to resolve

If the above do not help, you may need to reinstall your SMTP service portion of IIS on your machine.

No comments: