CDO Error (class not registered)

CDO Error (class not registered)

Post by dG9ue » Wed, 15 Aug 2007 10:32:01

I write a VBScript to call CDO, but I get an error message "class is not
registered, CDO.Configuration.1". I have re-registered the cdo.dll and
cdosys.dll. I have checked the registry and the CDO.Configuration.1 exist

my script:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = " XXXX@XXXXX.COM "
objMessage.To = " XXXX@XXXXX.COM "
objMessage.TextBody = "This is some sample message text."
objMessage.Configuration.Fields.Item _
(" ") = 2

Error when running
objMessage.Configuration.Fields.Item _
(" ") = 2

This is my PC info
AMD Athlon 64 X2
Outlook 2003 SP2
Exchange System Manager

CDO Error (class not registered)

Post by RXJpYyBMZW » Thu, 16 Aug 2007 02:16:03

Use are using CDOEX objects, not CDO 1.21 objects (which are all in the MAPI
namespace). Code using CDOEX must run on the Exchange Server itself.

Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook: