- Newest
- Most votes
- Most comments
A connection refused means that when trying to establish a TCP connection to :587 on email-smtp.us-east-1.amazonaws.com
the server (or something in between, like a firewall) responded with a reset packet.
My suggestion, first check if you can reach email-smtp.us-east-1.amazonaws.com
outside of your PHP program, from the machine that is running PHP, if you are running linux you can do it with NC as follows:
% nc -4 -v email-smtp.us-east-1.amazonaws.com 587 Connection to email-smtp.us-east-1.amazonaws.com port 587 [tcp/submission] succeeded! 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-F1IOSWD55 oz6dMFr1gGLg97gxKjp6
As you can see, from my machine this succeeds.
If you get a connection refused here - then you should start with some network troubleshooting - and see if there is a firewall on your network that is refusing you to connect to port 587 on this host, or the internet in general.
Relevant content
- asked 3 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 3 months ago