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

JeanSolPartre's avatar

Mail doesn't work on the server but still working in local

Hello,

I use the Laravel mail system and It's working very well in local but when I test it on my server, I get this error :

Expected response code 220 but got code "502", with message "502 5.5.1 Error: command not implemented

Is someone known how I can fix it please?

Best regards,

Alexandre Collienne

0 likes
1 reply
bobbybouwmann's avatar

It's most likely that the encryption is set to tls in config/mail.php and the server doesn't support that encryption. You could try ssl instead.

1 like

Please or to participate in this conversation.