AlternateView in mailmessage hide the body
Posted on 2006-07-23
I have a mailmessage with an image in it that I add with AlternateView .
AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<img src=cid:companylogo>", null, "text/html");
LinkedResource logo = new LinkedResource("C:\\anat\\images\\iibmailg.gif");
logo.ContentId = "companylogo";
When I add this I lose the body of my message. although I write
message.Body = "test email1......."
I don't see the body but only the image.
What is the problem here?