This Worked for me: ( Get your data from your control panel )
Amazon SES
SMTP server address: email-smtp.us-east-1.amazonaws.com
SMTP server port: 2587
SMTP secure connection: TLS
SMTP username: AKIAZQ*************
SMTP password: BGKHceL**********
Must notice at Amazon-SES SMTP username is not IAM username
see this
MailGun
SMTP server address: smtp.eu.mailgun.org
SMTP server port: 2525
SMTP secure connection: TLS
SMTP username: user@My_Domain.LTD
SMTP password: pass****************
I am on shared hosting and some ports are closed like port 25
So to lookup open ports, if you get terminal access
try this command $ curl -vv telnet://URL:Port
$ curl -vv telnet://email-smtp.us-east-1.amazonaws.com:25
if port close:
curl: (7) Failed to connect to email-smtp.us-east-1.amazonaws.com port 25: Connection refused
if port open:
* Trying 50.16.75.168:25...
* Connected to email-smtp.us-east-1.amazonaws.com (50.16.75.168) port 25 (#0)
Or you can contact your hosting support and share with them the name and docs link of the service you want to work on, so the support can tell you which ports are open or open ports for you.