CDO Error (class not registered)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 = "(e-mail address removed)"
objMessage.To = "(e-mail address removed)"
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top