Hotmail email on self hosted

Anyone know how to get a hotmail address working on a self hosted invoice ninja? I have no issue banging in the details from my own web domain, but I had added a second company for my partner’s business and his email is Hotmail based?

I’m getting
400: Connection to “smtp-mail.outlook.com:587” timed out.

I’ve tried tls and starttls and still getting the same error?

Thanks

Hi,

You may want to check the domain/port are reachable from the server using telnet.

Well, running nmap suggests the port is open and accepting requests.

nmap -p 587 smtp-mail.outlook.com
Starting Nmap 7.95 ( https://nmap.org ) at 2024-07-02 09:37 EDT
Nmap scan report for smtp-mail.outlook.com (52.96.87.214)
Host is up (0.017s latency).
Other addresses for smtp-mail.outlook.com (not scanned): 52.96.111.22 52.96.111.102 40.104.46.38 40.104.46.70 52.96.35.6 52.96.35.182 52.96.64.134 2603:1036:302:4837::6 2603:1036:302:4842::6 2603:1036:302:5059::6 2603:1036:302:5062::6 2603:1036:903:4::5 2603:1036:903:4::b 2603:1036:302:4080::6 2603:1036:302:40b4::6

PORT    STATE SERVICE
587/tcp open  submission

Nmap done: 1 IP address (1 host up) scanned in 1.54 seconds

Microsoft does recommend using starttls when setting it up. A 400 error is usually a bad request error, meaning the server didn’t understand something in the request that was being sent. So I would guess that something is configured incorrectly.

While I don’t think it is your problem, you could also look at your PHP timeout settings. Granted, even basic, conservative PHP timeout settings should not have a problem given the results of the nmap I ran above.