How to make a display name for the sender in exchangelib for Python3?

117 views Asked by At

I correctly send email messages with python exchangelib in this way:

   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) 

Now, I would like recipients to gets messages coming from 'label mailto:[email protected]' but:

   self.account = Account('label <[email protected]>', credentials=self.credentials, autodiscover=True)

doesn't work. Any idea?

thanks

1

There are 1 answers

0
Erik Cederstrand On

I don't think EWS supports customizing the label on the sender field. See https://github.com/ecederstrand/exchangelib/issues/544