E-mail Problem [Could not access 'CDO.Message' object.]

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hi Gurus,
From some systems we are not able to send e-mails. Error is:
Could not access 'CDO.Message' object.
Here's my simple code.

Dim MailMessage As New System.Web.Mail.MailMessage
MailMessage.Body = MailBody
MailMessage.Subject = MailSubject
MailMessage.From = MailFrom
MailMessage.To = MailTo
System.Web.Mail.SmtpMail.SmtpServer = MailServer
System.Web.Mail.SmtpMail.Send(MailMessage)

It works on many systems, but on few it does not work.

Anybody know what to do to make it work.
Richard
 
Richard,

It does only work on systems where CDO is in the OS. That started with NT5.

It is as well not on 9x/me systems.

I hope this helps,

Cor
 

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