Hello,
We're developing a small SMTP client application. When
we run the program we get the following error message:
"could not access 'CDO.Message' object"
We get the error message when we set the
"SmtpMail.SmtpS erver" value. However, if
we don't specify the server name we don't
receive the email message either.
// C# source code snippet.
//
MailMessage mm = new MailMessage();
mm.From = "support@mycomp any.com";
mm.To = "testgroup@myco mpany.com";
mm.Cc = "";
mm.Bcc = "";
mm.Subject = "Test Subject";
mm.Body = "Test Body";
SmtpMail.SmtpSe rver = "mycompany.com" ;
SmtpMail.Send(m m);
// end of code snippet
Any ideas about what could be causing the error message?
TIA,
Jacques
We're developing a small SMTP client application. When
we run the program we get the following error message:
"could not access 'CDO.Message' object"
We get the error message when we set the
"SmtpMail.SmtpS erver" value. However, if
we don't specify the server name we don't
receive the email message either.
// C# source code snippet.
//
MailMessage mm = new MailMessage();
mm.From = "support@mycomp any.com";
mm.To = "testgroup@myco mpany.com";
mm.Cc = "";
mm.Bcc = "";
mm.Subject = "Test Subject";
mm.Body = "Test Body";
SmtpMail.SmtpSe rver = "mycompany.com" ;
SmtpMail.Send(m m);
// end of code snippet
Any ideas about what could be causing the error message?
TIA,
Jacques
Comment