发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8
来源:互联网 发布:微商管理系统源码 编辑:程序博客网 时间:2024/06/06 03:58
在进行发邮件的时候抛出的这个异常:
IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=UTF-8
检查在站点的lib文件夹下和在tomcat的common的lib下边是不是同时存在mail.jar and activation.jar,没有的话加进去就OK了,我的已解决。jar包我已上传,用的话自己下。
http://download.csdn.net/detail/m_123hj_520/8505847
0 0
- 发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8
- JavaMail发送HTML邮件 no object DCH for MIME type multipart/mixed;异常
- java mail 发送邮件 no object DCH for MIME type multipart/mixed 之正解
- Content type 'text/plain;charset=UTF-8' not supported
- Java之—— java mail 发送邮件 no object DCH for MIME type multipart/mixed 之正解
- 用javamail发送附件出错:javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart
- header("Content-Type:text/html;charset=utf-8");
- header('Content-Type: text/html; charset=utf-8');
- header('Content-Type: text/html; charset=utf-8');
- header("Content-type:text/html;charset=utf-8")含义
- header("Content-type:text/html;charset=utf-8");
- header("Content-type:text/html;charset=utf-8")含义
- client found response content type of text/html charset=utf-8 but expected text/xml
- AjaxAnywhere content-type in not text/xml : [text/json;charset=UTF-8]
- <meta charset="gbk">或者<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">乱码
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- HTML <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />解析
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />解释
- LeetCode算法题之Letter Combinations of a Phone Number
- Html5新标签解释及用法
- ajax是否能跨域请求,解决的办法
- Android项目开发实战:倒计时
- SIGIO 异步通知转换为同步阻塞
- 发邮件抛异常。no object DCH for MIME type text/plain; charset=UTF-8
- (1.3.2.2)查找:斐波那契查找
- java .equals() hashcode
- 网站用-IP地球显示
- 返回值会出现随机情况
- UITextView 自适应高度 及显示html内容
- 如何使用git send-email
- 简单魔方程序
- 京东MYSQL分布式数据库:集群系统技术交流