"Could not access 'CDO.Message' object." How to resolve in IIS server

  • Thread starter Thread starter Kamal
  • Start date Start date
K

Kamal

I am trying to send mail through smtp. smtp service is
running on my machine. But every time during the
smtpmail.send(msg) call gives "Could not
access 'CDO.Message' object." error. Could some one help
me out to resolve this issue.

Thanks in advance,
Kamal
 
The message on the caught exception is rather misleading as it always seems
to come back with that regardless of the true problem. Check
exception.InnerException.InnerException.Message to get the true cause of the
error. Provided it isn't rejecting the attempt due to an invalid e-mail
address, it could be that you need to specify the SMTP server via the
SmtpMail.SmtpServer property.

Eric
 
Back
Top