400: Connection to smtp-mail.outlook.com:587 timed out.

Hi , Ahmad Here
i am using InvoiceNinja , try to configure SMTP email for email account from Microsoft365, but i am getting following error.
400: Connection to “smtp-mail.outlook.com:587” timed out.

Hi,

From the error it looks like it may be a networking issue, I suggest checking the domain/port are reachable from the server.