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

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
 
E

Eric

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top