问题描述
是否可以使用 exchangelib 检索帐户中主要 SMTP 地址的电子邮件别名?
除了 Contact 对象之外,我在文档中没有看到任何提及别名的内容。这里有一个 email_alias
属性,我可以使用 account.contacts / 'Recipient Cache'
来查找通过他们的 Contact 对象通过电子邮件发送地址的人的别名,但我需要这个作为主帐户电子邮件。这可能吗?
我目前使用的代码
credentials = Credentials(username,password)
account = Account(username,credentials=credentials,autodiscover=True)
gal = account.contacts / 'Recipient Cache'
for c in gal.all():
print(c.email_addresses)
print(c.email_alias)
我在 account.contacts / 'gal Contacts'
我已经检查了 https://ecederstrand.github.io/exchangelib/#contacts、https://ecederstrand.github.io/exchangelib/exchangelib/ 和 Github
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)