Could not access 'CDO.Message' object while using SMTP in System.Web.Mail
1. The SMTP server must accept your outcoming email address
2. The SMTP server uses the standard port 25 for SMTP
MailMessage Message = new MailMessage();
Message.To = "joe@xxx.com";
Message.From = "xxx@sympatico.ca"; // This address must have been registered in the SMTP server you are using in SmtpMail.SmtpServer
Message.Subject = "Test";
Message.Body = "It is a testing message";
SmtpMail.SmtpServer = "smtp8.sympatico.ca"; // The SMTP server
SmtpMail.Send(Message);