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

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

posted on 2004-05-12 17:21  吹雪  阅读(1787)  评论(0编辑  收藏  举报

导航