View Single Post
  #2  
Old August 14th 07, 07:16 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default CDO Error (class not registered)

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:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"tony" wrote:

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