Skip to content

Instantly share code, notes, and snippets.

@coingraham
Last active March 6, 2024 02:11
Show Gist options
  • Save coingraham/65ab566eb6677e0e39dbdbf545ba501a to your computer and use it in GitHub Desktop.
Save coingraham/65ab566eb6677e0e39dbdbf545ba501a to your computer and use it in GitHub Desktop.
Test AWS SES from the CLI Command Line
# Connect to AWS SES
openssl s_client -crlf -quiet -connect email-smtp.us-east-1.amazonaws.com:465
openssl s_client -crlf -quiet -starttls smtp -connect email-smtp.us-east-1.amazonaws.com:25
# SMTP commands
EHLO 2ndwatch.com
AUTH LOGIN
# Username by 'echo -n [accesskey] | base64'
skdfjlskdflskj
# Password by 'echo -n [secretkey] | base64'
sdjlskdjflskjdflksj
# SMTP Commands
MAIL FROM:[verifiedemail]
RCPT TO:[verifiedemail]
DATA
Subject: Testing the SES
This was a test
.
QUIT
# Check to see if you got the email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment