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
 
Back
Top