J
Jacques Cooper
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.SmtpServer" 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 = "(e-mail address removed)";
mm.To = "(e-mail address removed)";
mm.Cc = "";
mm.Bcc = "";
mm.Subject = "Test Subject";
mm.Body = "Test Body";
SmtpMail.SmtpServer = "mycompany.com";
SmtpMail.Send(mm);
// 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.SmtpServer" 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 = "(e-mail address removed)";
mm.To = "(e-mail address removed)";
mm.Cc = "";
mm.Bcc = "";
mm.Subject = "Test Subject";
mm.Body = "Test Body";
SmtpMail.SmtpServer = "mycompany.com";
SmtpMail.Send(mm);
// end of code snippet
Any ideas about what could be causing the error message?
TIA,
Jacques