一种解决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);
改为:
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);