1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked 6 months ago
- asked 2 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 25 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years 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?