Thursday, March 6, 2008

Could not access CDO.Message

I encountered this error (Could not access CDO.Message) upon sending email. The article The scary "Could not access 'CDO.Message' object" helped me in solving this problem just by modifying my previous code:

SmtpMail.SmtpServer = "IP_address"


to

SmtpMail.SmtpServer.Insert( 0, "IP_address")


where IP_address is the IP address of the SMTP server.

My officemate explained to me that this is a known issue of .NET 1.1 Framework. He said that the above-mentioned code will do as a workaround, but not all the time. Bummer.

No comments:

Your Ad Here