您的位置:首页 > Web前端 > HTML

一种解决HTML Jmail信件乱码的方法:

2004-05-12 17:21 387 查看
Mail.HTMLBody ="Dear sir,<br>"+"Please reply the following question.<br>"+strqeustion+"<br>From "+strmail
改为:
Mail.Body = "Dear sir,<br>"+"Please reply the following question.<br>"+strqeustion+"<br>From "+strmail
Mail.Contenttype="text/html"

但是如果要加附件的话
应该是
Mail.Charset="utf-8";
Mail.HTMLBody="Dear sir,<br>"+"Please reply the following question.<br>"+strqeustion+"<br>From "+strmail;
Mail.AddAttachment(File_Name,name,false,null);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: