一种解决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);
改为:
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);
相关文章推荐
- 关于利用Jsoup解析HTML中&nbsp;变成非传统空格或乱码问题解决方法
- jsp中使用jstl导入html乱码问题解决方法
- sitemesh装饰后的html中文乱码解决方法
- u盘挂载中文乱码一种不彻底方法,xubuntu如何搜索可能解决方法
- Oracle乱码的一种解决方法
- 在struts2种解决url中文乱码的方法(其中一种方法)
- jsp通过include指令引入html乱码的解决方法
- jQuery Ajax post中文出现乱码的一种解决方法
- 如何解决HTML网页中文显示乱码的方法
- html设计之js弹出框出现中文乱码解决方法
- python抓取并保存html页面时乱码问题的解决方法
- html使用include出现乱码乱字符号解决方法
- jsp页面包含含有中文的html页面出现乱码的解决方法
- html编写代码时,显示效果中文内容出现乱码解决方法
- 解决Spring MVC中get请求参数乱码的一种不改tomcat配置解决方法
- 解决java/jsp乱码的一种转换方法
- 用sublime text3编写的html网页用浏览器打开出现中文乱码的原理及解决方法
- Delphi TNativeXML Node节点乱码的一种解决方法
- html/jsp中文显示乱码解决方法