Hello, has anyone found a solution to this problem?I can get it to work at all.
Web hosting at Bluehost and using Office365 for emails for many years working without a problem.
Recently I installed osTicket which is amazing (thanks developers), but I can't get it to play nice with Office365. I thought given how popular Office365 is, it would be fairly straightforward. I've searched everywhere with no luck, unless I missed something late one night. I hope someone can help.
Server Information
osTicket Version v1.14.1 (f1e9e88) — Up to date
Web Server Software Apache
MySQL Version 5.6.41
PHP Version 5.6.40
These are the errors I get trying different hostnames that I've found on the forum
smtp.office365.com
authentication failure [SMTP: STARTTLS failed (code: 220, response: TLS go ahead)]
ssl://smtp.office365.com
Failed to connect to ssl://smtp.office365.com:587 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) (code: -1, response: )]
tsl://smtp.office365.com
Failed to connect to tls://smtp.office365.com:587 [SMTP: Failed to connect socket: fsockopen(): unable to connect to tls://smtp.office365.com:587 (Unknown error) (code: -1, response: )]
I tried this patch which actually started sending emails when I disabled SMTP. But they go to junk which isn't very professional and it could possibly stop working at anypoint because it's unsecure.
https://stackoverflow.com/questions/39653578/osticket-and-office365-smtp-authentication-failure/39791653#39791653