Error using CDO to send email

  • 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

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
 
You might get faster and more accurate responses in one of the Outlook
programming newsgroups down the hall.
 

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