View Single Post
  #1  
Old August 14th 07, 03:32 AM posted to microsoft.public.outlook.program_vba
Tony
external usenet poster
 
Posts: 73
Default CDO Error (class not registered)

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
"{CD000002-8B95-11D1-82DB-00C04FB1625D}"

my script:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "
objMessage.To = "
objMessage.TextBody = "This is some sample message text."
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

Error when running
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

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

Ads