Office 365 problems with starttls
I would like to require for assistance regarding an issue that i am facing. I am trying to send an email using the solution as per suggested on Stack Overflow.
I have tried troubleshooting myself as well but due to some reason my email doesn't sent out and I get the error Coonection could not be established with host smtp.office365.com [Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP #32741]
1 Reply
Hey,
It looks like the "starttls" is not enabled. This allows your mail server to convert from unsecured (http) to secured (https) communication.
If you configure SSL for you Linode you may not need the "starttls". You can use Let's Encrypt with your Linode to install a SSL. You can follow our guide "Secure HTTP Traffic with Certbot"
Also, you need to configure connectors with Office 365 so you can communicate with their smtp servers. Make sure this is done as well. Microsoft has a guide "Configure mail flow using connectors in Office 365"