The issue
I'm trying to setup mail on my server using Amazon SES through SMTP. I've entered the SMTP endpoint and port correctly and am using tls. I get the following error when I hit send mail:
Swift_TransportException: Connection could not be established with host email.us-east-1.amazonaws.com :stream_socket_client(): Unable to connect to tcp://email.us-east-1.amazonaws.com:465 (Connection timed out) in /public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261
Stack trace:
I can telnet into the smtp endpoint from the server successfully. I've tried port 2465 as well, as 465 and 2465 are what Amazon says to use for TLS. I've tried port 587 as well, because one other person on the forums here found success with that, but it did not solve my problem.