如何使用Office 365邮箱编程读取并发送加密的电子邮件?

发布于 2025-02-01 09:21:07 字数 707 浏览 2 评论 0 原文

我们将将外部消息处理系统与Office 365邮箱集成在一起。发送电子邮件时,客户有时喜欢使用Outlook提供的加密功能,并期望答复类似地加密。这就是为什么我们需要能够编程读取并发送加密电子邮件(最好使用PHP)。

我们注意到Microsoft提供了用于访问邮箱的图形REST API:

API似乎允许阅读和发送消息,但是没有提及加密的电子邮件。有人知道是否得到此API的支持?还是还有其他更适合这份工作的东西?

We are about to integrate an external message handling system with an Office 365 mailbox. When sending emails clients sometimes like to use the encrypt function provided by Outlook and expect the replies to be similarly encrypted. That is why we need to be able to programmatically read and send also encrypted emails (preferably using PHP).

We have noticed that Microsoft provides the Graph REST API for accessing mailboxes:

That API seems to allow reading and sending messages, but there is no mention about encrypted emails. Does anyone know if those are supported by this API? Or is there something else that would be better suited for the job?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

∞梦里开花 2025-02-08 09:21:07

图表中没有任何明确的用于执行加密电子邮件的明确性,但是该图允许您发送本机Mime电子邮件 https://learn.microsoft.com/en-us/graph/outlook-send-send-mime-message 因此,这允许您使用Smime进行加密和签名。您需要处理Smime自己的所有辅助部件(例如分发证书等)Opensll可以处理大部分 https://www.openssl.org/docs/man1.0.2/man1/openssl-smime.html

There is nothing explicit in the Graph for doing encrypted emails however the Graph allows you to send native MIME email https://learn.microsoft.com/en-us/graph/outlook-send-mime-message so this allows you to use SMIME for encryption and signitures. You need to handle all the ancillary parts of SMIME yourself (eg distributing certificate etc) OpenSLL can handle most of it https://www.openssl.org/docs/man1.0.2/man1/openssl-smime.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文