I use Windows 11
Referring to two threads one in Dutch and one in English, which both were closed, I encounter the same error problem with my Hotmail accounts: The messages are not sent using Thunderbird or Windows 365 (Outlook).
Sending of the message failed.
The message could not be sent because connecting to Outgoing server (SMTP) smtp.office365.com failed. The server may be unavailable or is refusing SMTP connections. Please verify that your Outgoing server (SMTP) settings are correct and try again.
I tried several settings. The problem persists. The lady on the Dutch website wrote that this problem was solved, but she did not specify what to do exactly.