This is a sample spring-boot project to demonstrate to send emails using aws ses and sdk
Blog post - https://www.rajith.me/2020/02/send-emails-using-aws-simple-email.html
- Java 8
- Apache Maven 3.5.0 or higher
- Clone the project
- add the aws region you are using to application.yml file
- add a sender email address in application.yml note that sender email address should be verified by the SES
- Build the project
mvn clean install
- Run the application
java -jar target/ses-1.0.0-SNAPSHOT.jar
- Send Request
POST http://localhost:8080/api/v1/email
{
"email": "[email protected]",
"body": "hello from aws ses"
}
For further reference, please consider the following sections:
(Aws SES developer guide) https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-sdk-java.html
(Using aws credentials) https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/credentials.html