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

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

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:
Answered: Question2Answer 1.9 development updates
Answered: New Free Plugin 'Message Viewer'
Hasbro CEO details tariff impact: 'We're making rapid changes'
Nvidia says Anthropic is telling 'tall tales' in its defense of U.S. AI chip restrictions on China
Bitcoin climbs to highest level since late February: CNBC Crypto World
Your favorite methods for stress relief/not thinking about work
How would you handle this? Parking problem
Big Tech has completely reversed its April tariff sell-off and is boosting confidence on Wall Street
Amazon issues light guidance, noting 'tariffs and trade policies' as factors
Amazon falls short on cloud revenue for third straight quarter