Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to embid Html type of body in my new mail message window. I am using the following cod. This is not converting Html tags into UI format, all the tags are just been displayed as it is.
void lFnSendMailWithMailTo(string aStrAddress, string aStrSubject, string aStrBody, string aStrAttach)
{
  try
  {
    string lStrMailto = string.Format("mailto:{0}?Subject={1}&Body={2}&Attach={3}", aStrAddress, aStrSubject, aStrBody, aStrAttach);
    System.Diagnostics.Process.Start(lStrMailto);
  }
  catch (Exception)
  {
    throw;
  }
}

Any suggestions on this please.
Thanks
Sreenath
Posted
Updated 14-Feb-11 20:08pm
v2

1 solution

u have to expilcitly defined your body display type
like Mymessage.IsHTML=true.
 
Share this answer
 
Comments
Sreenath Gv 15-Feb-11 2:16am    
but I think this the case when we are sending the mail directly using smtp. But i want to open default mail window with html body type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900