1
我知道我们可以使用以下代码(Reading e-mails from Outlook with Python through MAPI)从Outlook阅读电子邮件。身份验证如何在使用python和win32com阅读outlook电子邮件时工作
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6) # "6" refers to the index of a folder - in this case,
# the inbox. You can change that number to reference
# any other folder
messages = inbox.Items
message = messages.GetLast()
body_content = message.body
print body_content
但是我们在上面的代码中没有提供用户名和密码。 那么代码如何验证Outlook帐户。
任何人都可以解释如何认证发生在这里。
https://stackoverflow.com/questions/1225586/checking-email-with-python – amrit