----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: CSharpMadhu Message 1 in Discussion Hi Group, I am trying to use the System.Web.Mail to send emails from my application. I create a new MailMessage Object and set the SMTP Server. System.Web.Mail.SmtpMail.SmtpServer = smtpServer; System.Web.Mail.MailMessage mailMessage = new System.Web.Mail.MailMessage(); mailMessage.To = to; mailMessage.From = from; mailMessage.Subject = subject; mailMessage.Body = message; System.Web.Mail.SmtpMail.Send(mailMessage); The application throws an error at System.Web.Mail.SmtpMail.Send(mailMessage); The Exception is Could not access 'CDO.Message' object. The SMTP Service is installed and running on my machine. I had written similar code sometime back and it worked perfectly, I guess the exception is got to do with some settings. Can anybody tell me what needs to be done to fix this. Thanks Madhu ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
