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

man-u-l's avatar

Error while sending mail with Swift TSL option

Hi,

I went from using a mail hosting provider that used 465/SSL to one that uses 587/TSL and now I am getting this error:

Swift_TransportException: Connection could not be established with host smtp.ionos.com :stream_socket_client(): unable to connect to tsl://smtp.ionos.com:587 (Unable to find the socket transport "tsl" - did you forget to enable it when you configured PHP?) in /.../vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261

The settings for the new config was changed to tsl and 587 and also cache was clear, but nothing, I also tried using 465/SSL again but the new server does not take that option.

Thanks in advanced!

0 likes
1 reply
man-u-l's avatar
man-u-l
OP
Best Answer
Level 3

Problem solved, it is tls not tsl I feel dumb!

Please or to participate in this conversation.