mailto:在ASP.Net中具有HTML类型的正文 [英] mailto: with Html type body in ASP.Net

查看:57
本文介绍了mailto:在ASP.Net中具有HTML类型的正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在新的邮件窗口中嵌入Html类型的正文.我正在使用以下鳕鱼.这不是将HTML标签转换为UI格式,所有标签都按原样显示.

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;
  }
}


请对此提出任何建议.
谢谢
Sreenath


Any suggestions on this please.
Thanks
Sreenath

推荐答案

u必须明确定义您的身体显示类型
像Mymessage.IsHTML = true.
u have to expilcitly defined your body display type
like Mymessage.IsHTML=true.


这篇关于mailto:在ASP.Net中具有HTML类型的正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆