Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

manshu's avatar
Level 28

How to enable TLS on digital ocean LEMP server for laravel

Connection could not be established with host smtp.office365.com [Unable to find the socket transport "TLS" - did you forget to enable it when you configured PHP? #0]

0 likes
5 replies
manshu's avatar
Level 28

Im on forge. using LEMP stack. Ubuntu 14

Snapey's avatar

Check that openSSL is enabled in your php.ini file ( stick phpinfo(); into your routes.php)

manshu's avatar
Level 28

@Snapey I've attached the information.

SSL Yes
SSPI    No
TLS-SRP Yes
Protocols   dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, smtp, smtps, telnet, tftp
Host    x86_64-pc-linux-gnu
SSL Version OpenSSL/1.0.1f
ZLib Version    1.2.8
manshu's avatar
manshu
OP
Best Answer
Level 28

Im still having the same issue. Can anyone help ?

I finally used gmail, and it works fine. SMTP for Exchange365 doesn't work.

Please or to participate in this conversation.