我尝试将自己的自我与pywin32 python联系起来,但我不想使用该应用程序
需要明确的是,我想使用这条代码行 Outlook = win32com.client.dispatch(“ outlook.application”)。getNamespace(“ mapi”)
但是我不想使用Outlook应用程序。 我想将自己连接到Outlook.office365.com。不露面。应用程序,因为我必须在Linux上使用我的代码,而Outlook应用程序不在Linux上。 但是我仍然想使用win32com,因为他阅读了非常清楚的电子邮件。
有人可以帮我吗?因为我找不到该怎么做!
To be clear, i want to use this line of codeoutlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
but i do not want to use the outlook application.
I want to connect myself to outlook.office365.com. Not to Outlook.Application because I have to use my code on Linux and Outlook application isn't on Linux.
But I still want to use win32com because he reads very clearly email.
Can someone help me ? because I don't find how to do it !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所引用的代码行是特定于Outlook和Windows的桌面版:
您可以考虑使用图形API 。
对于您可以考虑使用EWS的本地交易所帐户,请参见探索Ewsed API,EWS和Web Services在Exchange中以获取更多信息。
The line of code you are referring to is specific to the desktop edition of Outlook and Windows:
You may consider using Graph API instead.
For the on-premise exchange accounts you may consider using EWS, see Explore the EWS Managed API, EWS, and web services in Exchange for more information.