Email issue – Connection could not be established with host

Problem: While send email it show

Connection could not be established with host “ssl://email-smtp.us-east-1.amazonaws.com:587”: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A00010B:SSL routines::wrong version number

Solution:

Change Port number to 465 instead of 587

If you are using LARAVAL you can do this in .env file

Instead of MAIL_PORT=587 use MAIL_PORT=465

Hope this help.