使用Outlook和Python发送电子邮件-克服Azure信息保护分类 [英] Sending emails using outlook with Python - Overcoming Azure Information Protection Classifications
问题描述
我正在使用win32com创建电子邮件,但是现在启用了Azure信息保护,如何在python中选择分类。
I am using win32com to create emails, but with Azure Information Protection now enabled how do I select the classification from within python.
到目前为止,我有2种解决方案:关闭AIP或手动选择分类,是否可以通过脚本自动进行分类?
I have 2 solutions so far: turn off AIP or manually select the classification, is there any way to automate it from the script?
谢谢!
推荐答案
我想您正在运行python脚本在azure Web应用程序上创建电子邮件。据我所知,Azure Web应用程序在沙箱中运行。我从此
I suppose you are running the python script to create emails on the azure web app. As I know , azure web app runs in a sandbox. I searched the General Sandbox Restrictions
from this doc and found the restrictions of COM servers as below:
Windows服务器配置了许多COM服务器,默认情况下可用
进行消费;但是,沙箱会阻止访问所有
进程外COM服务器。例如,沙盒应用程序无法
调用WMI或MSIServer。
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服务以发布电子邮件而不是 win32corn
。
So, in fact, we could use Azure SendGrid Service to post emails instead of win32corn
.
这是 Azure SendGrid Python SDK 和 Azure SendGrid定价规则。
希望对您有帮助。
这篇关于使用Outlook和Python发送电子邮件-克服Azure信息保护分类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!