I am running into the wonderful expection:
"Could not access 'CDO.Message' object."
"Exception has been thrown by the target of an invocation."
You can checkout my code below -
The interesting part with my error is that it only occurs with:
myMessage.BodyFormat = System.Web.Mail.MailFormat.Html;
The email relays perfectly fine with:
myMessage.BodyFormat = System.Web.Mail.MailFormat.Text;
I have spent 1.5 days on this so far ..
~ Doris.
----------------------------------------------------------------------------------------
This is my code:
try
{
MailMessage myMessage = new MailMessage();
myMessage.From = "xxx@yahoo.com";
myMessage.To = "xxx@yahoo.com";
SmtpMail.SmtpServer = "";
myMessage.BodyFormat = System.Web.Mail.MailFormat.Html;
myMessage.Body = "<html><head></head><body>Hello Andrei</
body></html>";
//myMessage.BodyFormat = System.Web.Mail.MailFormat.Text;
//myMessage.Body = "test";
SmtpMail.Send(myMessage);
}
catch(Exception ex)
{
throw new Exception(strMessage);
}
Stuart Davies - 21 Jun 2007 11:49 GMT
Is there anything of any use on here: http://www.systemwebmail.com/faq/4.2.aspx

Signature
Cheers
Stuart
"Is facio in meus apparatus"
> I am running into the wonderful expection:
> "Could not access 'CDO.Message' object."
[quoted text clipped - 33 lines]
> throw new Exception(strMessage);
> }