Last active
March 6, 2024 02:11
-
-
Save coingraham/65ab566eb6677e0e39dbdbf545ba501a to your computer and use it in GitHub Desktop.
Test AWS SES from the CLI Command Line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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