【发布时间】:2014-11-28 16:06:58
【问题描述】:
我正在使用 OSB (11.1.1.6) 服务发送电子邮件。
一些电子邮件客户端不接收附件。
我们已将问题缩小到 MIME 内容类型。
通过 OSB 将 Content-Type 设置为 multipart/related。为了让它工作(我们使用 ncat 测试过),我们需要将 Content-Type 设置为 multipart/mixed。
但是我找不到任何方法来强制 OSB 将其设置为 multipart/mixed。
此消息不在某些客户端上显示附件:
From: <nothing@example.com>
To: nothing@example.com
Message-ID: <xxx>
Subject: Subject 123
MIME-Version: 1.0
Content-Type: multipart/related; boundary="MIME_Boundary";
start=1389578236803081255-2926c9b7.148d69bfba8.7396
Return-Path: nothing@example.com
--MIME_Boundary
Content-ID: 1389578236803081255-2926c9b7.148d69bfba8.7396
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
<h1>Head</h1>
<p>Paragraph <b>bold</b></p>
--MIME_Boundary
Content-Type: text/plain; name="TEST.txt"
Content-Transfer-Encoding: base64
Content-Description: TEST.txt
Content-Disposition: attachment; filename="TEST.txt"
VGVzdGluZyAxMjM=
--MIME_Boundary--
此消息显示附件:
From: <nothing@example.com>
To: nothing@example.com
Message-ID: <xxx>
Subject: Subject 123
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MIME_Boundary";
start=1389578236803081255-2926c9b7.148d69bfba8.7396
Return-Path: nothing@example.com
--MIME_Boundary
Content-ID: 1389578236803081255-2926c9b7.148d69bfba8.7396
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
<h1>Head</h1>
<p>Paragraph <b>bold</b></p>
--MIME_Boundary
Content-Type: text/plain; name="TEST.txt"
Content-Transfer-Encoding: base64
Content-Description: TEST.txt
Content-Disposition: attachment; filename="TEST.txt"
VGVzdGluZyAxMjM=
--MIME_Boundary--
如您所见,唯一的区别是 Content-Type。
那么如何强制 OSB 将 Content-Type 设置为 multipart/mixed ?
【问题讨论】:
标签: email content-type mime osb