Could not create 'CDO.Message' object

  • Thread starter Thread starter JJBW
  • Start date Start date
J

JJBW

Re: Could not create 'CDO.Message' object

Has anyone figured this one out yet? I too have tried all the
suggestions I can find from the newgroups and still no luck.

MailMessage mmNotify = new MailMessage();

mmNotify.From = "MyAddress";
mmNotify.To = "MyRecipient";
mmNotify.BodyFormat = MailFormat.Text;
mmNotify.Subject = "MySubject";
mmNotify.Body = "Test";

SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mmNotify);

Result -> Could not create 'CDO.Message' object
 
Re: Could not create 'CDO.Message' object

Collaboration Data Objects (CDO) implements the functionality to create
Internet messages.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/ht
ml/collabdataobjects.asp

I am afraid that .NET framework uses CDO 2.0 that is not implemented in
Windows prior to 2000. it means that you cannot use theses classes in
Windows 98 or ME. you have to use MAPI or direct SMTP connections to send
e-mails.

Regards,
Wiktor
 
Back
Top