草庐IT

exchangelib

全部标签

python - exchangelib - 自动发现协议(protocol)中的所有步骤均失败

我在python中使用exchangelib时遇到问题。我试试这个示例代码:fromexchangelibimportDELEGATE,Account,Credentialscreds=Credentials(username='xxxx\\username',password="mypassword")account=Account(primary_smtp_address='surname.name@xxxx.fr',credentials=creds,autodiscover=True,access_type=DELEGATE)#Printfirst10inboxmessages