import os
from datetime import datetime
import pytz
from exchangelib import Credentials, Account, Configuration, DELEGATE, Q, FileAttachment
def received_exchange_message():
"""
接收exchange邮件,保存邮件到本地
:return:
"""
# 创建连接
config = Configuration(
server='exchange.example.com', # Exchange Web Services URL
credentials=Credentials('domain\\username', 'password')
)
account = Account(
primary_smtp_address='your.email@example.com',
config=config,
autodiscover=False,
a
python使用exchangelib读取、保存exchange邮件
于 2024-07-10 10:58:48 首次发布