Simple Email Service

To send emails, we will use the Amazon Simple Email Service, or SES, which we will wrap in the SesClient class in the api module.

IMPORTANT: Before you can send an email, you have to verify either your sending/from address or domain. The verification process is fairly simple, but how to do that is probably best left to Amazon's documentation, which you can read here: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html.

The Simple Email Service API is quite simple. We need to create a Destination, which tells the system to whom to send the emails; a Message that describes the message itself, including subject, body, and recipients; and a SendEmailRequest that ties everything together:

 private ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.