我以这种方式使用 python exchangelib 正确发送电子邮件:
self.account = Account('[email protected]', credentials=self.credentials, autodiscover=True)
m = Message(account=self.account, folder=self.account.sent, subject=subject, body=body, to_recipients=to_recipients)
现在,我希望收件人收到来自“label mailto:[email protected]”的邮件,但是:
self.account = Account('label <[email protected]>', credentials=self.credentials, autodiscover=True)
不起作用。 有什么想法吗?
谢谢