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

blapza's avatar

Amazon Ses not working

Hello everyone, i am using Amazon SES as a mail driver. It works on my localhost but it don't work on my production server. I get this error;

Connection could not be established with host "email-smtp.us-west-2.amazonaws.com:587": stream_socket_client(): Unable to connect to email-smtp.us-west-2.amazonaws.com:587

What can i do?

0 likes
3 replies
Tray2's avatar

My guess is that you either have the wrong uri to the server, it doesn't allow connections, using the wrong port or similar, or you have the wrong credentials

Please or to participate in this conversation.