Closed PrajjawalBanati closed 3 years ago
The only error message we get from the server is ErrorNonExistentMailbox
but that doesn't give any hints as to why. I think this question is better answered by your Exchange admins. They should be able to help you find out what is wrong on the server side.
I am using Office 365 exchange online. It's a SAAS product. For on-prem environments, we use Powershell only but for office 365 we use this library. It used to work before.
Then the question is what changed since the last time it worked? If you try to use the same version of exchangelib that you used the last time it worked, then you can find out whether the problem is with exchangelib or the Exchange server.
I assume this is a problem that needs to be fixed o the server. Feel free to reopen if you think anything can be improved in exchangelib.
Describe the bug I tried to create mailboxes using Powershell exchange online module and the mailboxes were showing in the exchange admin center. Then I created a message object for each email I did use a new message object (by running them in a for loop). It's actually showing one Exception that is:-
ErrorNonExistentMailbox('The SMTP address has no mailbox associated with it.')
If I am able to login to the mailbox using outlook then how come it is showing that the following SMTP address has no mailbox associated. With older versions, we never received such errors.To Reproduce Try to create an online exchange mailbox using powershell. Then run send_and_save() function for the same.
Expected behavior It should send a mail to the mailbox
Log output
Additional context Python using 3.8 Exchangelib using 4.5.0