如何在 Python3 的 exchangelib 中为发件人创建显示名称?

问题描述 投票:0回答:0

我以这种方式使用 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)

不起作用。 有什么想法吗?

谢谢

python-3.x email label exchangelib
© www.soinside.com 2019 - 2024. All rights reserved.