P
Patrick de Ridder
MailMessage myMail = new MailMessage();
myMail.From = textFrom.Text.Trim();
myMail.To = textTo.Text.Trim();
myMail.Subject = textSubject.Text.Trim();
myMail.BodyFormat = MailFormat.Text;
myMail.Body = textMsg.Text.Trim();
SmtpMail.SmtpServer = textSMTPServer.Text.Trim();
SmtpMail.Send(myMail);
*********************************
The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.
myMail.From = textFrom.Text.Trim();
myMail.To = textTo.Text.Trim();
myMail.Subject = textSubject.Text.Trim();
myMail.BodyFormat = MailFormat.Text;
myMail.Body = textMsg.Text.Trim();
SmtpMail.SmtpServer = textSMTPServer.Text.Trim();
SmtpMail.Send(myMail);
*********************************
The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.