Answered: How to setup SMTP to use Amazon SES and MailGun

Post date: 2023-05-31 02:23:53
Views: 30

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.

Please click Here to read the full story.
 
Other Top and Latest Questions:
Ripley: VII Macabre Entertainment Show Only
The salary a single person needs to live comfortably in every U.S. state
Help me assess the morals of applying for a C-Suite role
Your magic work phrase
Incredibly middle-aged question about home appraisal, taxes, blah
Sen. Tom Cotton encourages drivers to drag Gaza cease-fire protestors from blocked roads
Potential Trump trial jurors dismissed because of bias against former president
Dr. Martens shares plunge 30% to all-time low, trading briefly halted on weak outlook
Why a $100,000 income no longer buys the American Dream in most places
Flights are still being disrupted and rerouted after Iran's attack on Israel. Here's what you need to know