Multipart MIME message + Outlook = Body not displaying


Multipart MIME message + Outlook = Body not displaying



I'm trying to construct a Multipart MIME message that is going to be read on Outlook clients. Sending the same message to Other mail clients seems to work fine, but in outlook it does not display the mail body.



Mail snippet:


MIME-Version: 1.0
To: <lorem.ipsum@domain.com>
Date: 25 Jun 18 15:27:11 +0200
Subject: Test Attachment
Content-Transfer-Encoding: 8bit
Content-type: multipart/mixed; boundary="Y3XZG0NI1T8O2A2M"; charset=utf-8

--Y3XZG0NI1T8O2A2M
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8

Test Content

--Y3XZG0NI1T8O2A2M
Content-Type: application/octet
Content-Disposition: attachment; filename="Test.txt"
Content-Transfer-Encoding: base64

VGVzdCBGaWxl
--Y3XZG0NI1T8O2A2M--



I found this from 2013, (+ other sources) There apparently was a bug related to this in the past.



But even if this is a bug, I have already received MIME messages in Outlook with no issue, so there must either be something wrong with my construction or a viable workaround.



Any ideas of what is going wrong here and how to fix it?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV