Sending Mail with Amazon SES SMTP Server and Java Mail API
Guide
What you'll need
- JDK 1.7 or later
- Maven 3 or later
- Amazon SES account
- SMTP Credentials of your Amazon SES account
- Verified From email and To email on SES console
Stack
- Java Mail API
Run
mvn clean package exec:java -Dexec.args="{SMTP_USER_NAME} {SMTP_USER_PASSWORD} {FROM_USER_EMAIL} {FROM_USER_FULLNAME} {TO_USER_EMAIL}"