gpt4 book ai didi

python - 使用 Outlook 和 Python 发送电子邮件 - 克服 Azure 信息保护分类

转载 作者:行者123 更新时间:2023-12-03 04:21:22 25 4
gpt4 key购买 nike

我正在使用 win32com 创建电子邮件,但现在启用了 Azure 信息保护,如何从 python 中选择分类。

到目前为止我有2个解决方案:关闭AIP或手动选择分类,有什么方法可以从脚本中自动化它吗?

谢谢!

最佳答案

我想您正在运行 python 脚本来在 azure Web 应用程序上创建电子邮件。据我所知, azure 网络应用程序在沙箱中运行。我从此doc搜索了一般沙箱限制发现COM服务器的限制如下:

Windows Servers have a bunch of COM servers configured and available for consumption by default; however the sandbox prevents access to all out-of-proc COM servers. For example, a sandboxed application cannot call into WMI, or into MSIServer.

所以,事实上,我们可以使用 Azure SendGrid Service发布电子邮件而不是 win32corn

这是Azure SendGrid Python SDKAzure SendGrid pricing rules .

希望对您有帮助。

关于python - 使用 Outlook 和 Python 发送电子邮件 - 克服 Azure 信息保护分类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48460957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com