How to Test SES credentials key is working or not

0

Hi Team,

How can we test if ses credentials key is working or not by CLI or any other tool?

Thanks, Anuj

AnujG
asked 8 months ago623 views
1 Answer
0

Hello.

Connect to the SMTP endpoint using the openssl command as described in the documentation below.
Once the connection is established, enter the necessary information and check if you can send emails.
https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp-client-command-line.html#send-email-using-openssl

echo -n “SMTP Username" | openssl enc -base64
echo -n “SMTP Password" | openssl enc -base64
openssl s_client -starttls smtp -crlf -connect email-smtp.us-east-1.amazonaws.com:587
EHLO Domain
AUTH LOGIN
Base64 encoded SMTP username
Base64 encoded SMTP password
MAIL FROM: test@example.com //Sender email address, approved by SES
RCPT TO: sender@example.com //Destination email address
DATA
From: Sender Name //Sender name
To: sender@example.com  //Destination
Subject: Amazon SES SMTP Test

This message was sent using the Amazon SES SMTP interface.
.
QUIT
profile picture
EXPERT
answered 8 months ago
  • HI Riku,

    I have tested connection with below command only Test-NetConnection -Port 587 -ComputerName email-smtp.us-west-2.amazonaws.com

    but not able to send email using credentials?

    how to use this step?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions