jakarta-mail - javamail 抛出 javax.activation.UnsupportedDataTypeException: text/related; 字符集=UTF-8
问题描述
我正在尝试从专有存档格式创建 EML(使用 javamail)。我收到以下错误:
“javax.activation.UnsupportedDataTypeException:文本/相关;charset=UTF-8”
我在 RFC 中进行了搜索,但无法确定这是否违反。源电子邮件内容具有下面提到的边界参数。
Content-Type: multipart/related;
boundary=_861f0215-a7a4-4ec2-84ea-56b5552629ae_; type="text/html"
Content-Transfer-Encoding: base64
如果我用 Content-Type: text/html 替换整个 Content-Type,那么它可以工作。
解决方案
推荐阅读
- r - 如何对多个间隔使用“重叠”功能?
- r - R Plumber Slack 机器人响应
- python - 向现有 CSV 文件添加列
- apache - 如何禁用特定文件夹中的父 htaccess 规则
- javascript - 将 Javascript Fetch 转换为 Google Apps Script URL Fetch
- c++ - 将 JobObject 分配给从 SYSTEM 服务启动的具有非零会话 id 的进程
- node.js - 为什么节点模块中无法识别我的返回变量值
- r - 如何更改闪亮仪表板中的侧边栏 menuItem("menu1") 字体颜色?
- java - Java中的字节缓冲区到BufferedImage
- python - 在 Pygame 中,价值被计算得比预期的要多