Could not access 'CDO.Message' object Posted: 15 Jun 2004
When I try to Send email from asp.net by SMTP services the following message comes "Could not access 'CDO.Message' object". But if don't use the SmtpServer then it is ok and send mail successfully. But when I am using SmtpServer the above message comes. How to solve this ??
I have signed here for solving my queries regarding devolopment
Solution to the CDO.Message error Posted: 2 May 2005
To use the SmtpServer of .Net you have to follow one of the two options:
1. Give a valid SMTP server IP address in the smtpserver property of the SmtpMail object (note this smtpserver should allow the anonymous access to send the mails)
2. Install a mail server on your machine. IIS also comes with an in-built SMTP service, you can also use that. To work with it you have to give the relay access rights to IP address of the local machine or you can also specify 127.0.0.1 in it. Now give this IP address also in the smtpserver property of the SmtpMail object also.
Hope this will solve your problem.
Or you can also contact me on sakiv77@gmail.com for any further queries.