首页 文章

OSB电子邮件 - 强制multipart / mixed

提问于
浏览
1

我正在使用OSB(11.1.1.6)服务发送电子邮件 .

某些电子邮件客户端不会提取附件 .

我们已将问题缩小到MIME Content-Type .

通过OSB,它将Content-Type设置为 multipart/related . 为了使它工作(我们使用ncat测试)我们需要将Content-Type设置为 multipart/mixed .

但是,我无法找到任何方法强制OSB将其设置为 multipart/mixed .

此消息 does not 在某些客户端上显示附件:

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

2 回答

  • 0

    您可以设置传输标头内容类型 . 我假设您正在使用路由来调用具有电子邮件配置的BS服务 . 从您要路由的代理服务器,在请求操作中,添加通信>传输标头 . 从下拉列表中选择电子邮件>> Content-Type .

  • 0

    在与Oracle支持人员进行一些沟通后,我们指出应用补丁12585136 .

    这是针对OSB 11.1.1.7(link)修复的错误之一

    • 12585136 - 电子邮件传输生成多部分/相关电子邮件,而不是mulitpart / mixed

    在我们应用并测试了补丁后,我将更新此答案并提供更多反馈 .

相关问题