<legend id='Cc9y1'><style id='Cc9y1'><dir id='Cc9y1'><q id='Cc9y1'></q></dir></style></legend>
      1. <tfoot id='Cc9y1'></tfoot>
        <i id='Cc9y1'><tr id='Cc9y1'><dt id='Cc9y1'><q id='Cc9y1'><span id='Cc9y1'><b id='Cc9y1'><form id='Cc9y1'><ins id='Cc9y1'></ins><ul id='Cc9y1'></ul><sub id='Cc9y1'></sub></form><legend id='Cc9y1'></legend><bdo id='Cc9y1'><pre id='Cc9y1'><center id='Cc9y1'></center></pre></bdo></b><th id='Cc9y1'></th></span></q></dt></tr></i><div id='Cc9y1'><tfoot id='Cc9y1'></tfoot><dl id='Cc9y1'><fieldset id='Cc9y1'></fieldset></dl></div>

          <bdo id='Cc9y1'></bdo><ul id='Cc9y1'></ul>

        <small id='Cc9y1'></small><noframes id='Cc9y1'>

      2. 使用 Python 连接到 Exchange 邮箱

        时间:2023-10-18

        <tfoot id='D0LSV'></tfoot>
        <i id='D0LSV'><tr id='D0LSV'><dt id='D0LSV'><q id='D0LSV'><span id='D0LSV'><b id='D0LSV'><form id='D0LSV'><ins id='D0LSV'></ins><ul id='D0LSV'></ul><sub id='D0LSV'></sub></form><legend id='D0LSV'></legend><bdo id='D0LSV'><pre id='D0LSV'><center id='D0LSV'></center></pre></bdo></b><th id='D0LSV'></th></span></q></dt></tr></i><div id='D0LSV'><tfoot id='D0LSV'></tfoot><dl id='D0LSV'><fieldset id='D0LSV'></fieldset></dl></div>
      3. <legend id='D0LSV'><style id='D0LSV'><dir id='D0LSV'><q id='D0LSV'></q></dir></style></legend>

          <small id='D0LSV'></small><noframes id='D0LSV'>

            <tbody id='D0LSV'></tbody>
            • <bdo id='D0LSV'></bdo><ul id='D0LSV'></ul>

                • 本文介绍了使用 Python 连接到 Exchange 邮箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要在 Python 脚本中连接到 Exchange 邮箱,而不使用本地计算机上的任何配置文件设置(包括使用 Outlook).如果我使用 win32com 创建 MAPI.Session 我可以使用现有配置文件登录(使用 Logon() 方法),但我只想提供用户名和密码.

                  I need to connect to an Exchange mailbox in a Python script, without using any profile setup on the local machine (including using Outlook). If I use win32com to create a MAPI.Session I could logon (with the Logon() method) with an existing profile, but I want to just provide a username & password.

                  这可能吗?如果是这样,有人可以提供示例代码吗?如果它只使用标准库和 pywin32 包,我会更喜欢.遗憾的是,无法为 Exchange 服务器启用 IMAP 访问(然后使用 imaplib).

                  Is this possible? If so, could someone provide example code? I would prefer if it only used the standard library and the pywin32 package. Unfortunately, enabling IMAP access for the Exchange server (and then using imaplib) is not possible.

                  如果有必要:所有脚本将做的就是连接到邮箱,并运行收件箱中的邮件,检索内容.如果我能首先获得连接,我可以处理为此编写代码!

                  In case it is necessary: all the script will be doing is connecting to the mailbox, and running through the messages in the Inbox, retrieving the contents. I can handle writing the code for that, if I can get a connection in the first place!

                  澄清有关 Outlook:Outlook 将安装在本地计算机上,但它没有任何帐户设置(即所有适当的库都将可用,但我需要独立于 Outlook 内部的任何设置进行操作).

                  To clarify regarding Outlook: Outlook will be installed on the local machine, but it does not have any accounts setup (i.e. all the appropriate libraries will be available, but I need to operate independently from anything setup inside of Outlook).

                  推荐答案

                  我很确定如果不使用 Outlook 和 MAPI 配置文件,这将是不可能的.如果您能与您的邮件管理员甜言蜜语,让您在 Exchange 服务器上启用 IMAP,那么您的生活会轻松很多.

                  I'm pretty sure this is going to be impossible without using Outlook and a MAPI profile. If you can sweet talk your mail admin into enabling IMAP on the Exchange server it would make your life a lot easier.

                  这篇关于使用 Python 连接到 Exchange 邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Python [Errno 98] 地址已在使用中 下一篇:从 Python 管理与 redis 的连接

                  相关文章

                • <tfoot id='ua5se'></tfoot>

                    <bdo id='ua5se'></bdo><ul id='ua5se'></ul>

                  <i id='ua5se'><tr id='ua5se'><dt id='ua5se'><q id='ua5se'><span id='ua5se'><b id='ua5se'><form id='ua5se'><ins id='ua5se'></ins><ul id='ua5se'></ul><sub id='ua5se'></sub></form><legend id='ua5se'></legend><bdo id='ua5se'><pre id='ua5se'><center id='ua5se'></center></pre></bdo></b><th id='ua5se'></th></span></q></dt></tr></i><div id='ua5se'><tfoot id='ua5se'></tfoot><dl id='ua5se'><fieldset id='ua5se'></fieldset></dl></div>

                    1. <small id='ua5se'></small><noframes id='ua5se'>

                      <legend id='ua5se'><style id='ua5se'><dir id='ua5se'><q id='ua5se'></q></dir></style></legend>