任何人都可以解释如何加密具有多个附件的mime邮件,可读取Outlook?我目前正在构建一个由Outlook正确读取的多部分邮件,但如果我使用openssl_pkcs7_encrypt()加密该multipart-header主体,则Outlook仅读取(html)-body并且无法分离附件 . 然后它说第一个附件是不可读的 .
结构是
To: you@example
From: me@example
Reply-To: me@example
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="mx-2041315b16859f651fe7575c5949d1aa"
This is a multi-part message in MIME format
--mx-2041315b16859f651fe7575c5949d1aa
Content-Type: multipart/related; boundary="rel-2041315b16859f651fe7575c5949d1aa";
--rel-2041315b16859f651fe7575c5949d1aa
Content-Type: text/html; charset=UTF-8;
[]
--rel-2041315b16859f651fe7575c5949d1aa
Content-Type: image/jpg; name="Image.jpg"
Content-ID: img1
Content-Disposition: inline; filename="Image.jpg"
Content-Transfer-Encoding: base64
[related ]
--rel-2041315b16859f651fe7575c5949d1aa
--mx-2041315b16859f651fe7575c5949d1aa
Content-Type: application/octet-stream; name="A_PDF.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="A_PDF.pdf"
[]
--mx-2041315b16859f651fe7575c5949d1aa
本文发布于:2024-01-29 14:13:39,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170650882215852.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |