One of the most used functionalities of a web application is to send emails to visitors. In our application, as you remember, we did not require the users to set a password, but we wanted to send a confirmation mail to their inboxes with an automatically generated password. AWS provides a great service for sending transactional emails, SES (Simple E-Mail Service) for this purpose. We can verify our domain in SES, set some DNS values for anti-spam purposes, and use the SES API to easily generate and send emails to our visitors.
In this section, we will briefly show you how to enable SES for sending emails. Moreover, we will introduce SNS (Simple Notification Service), which is a messaging service in the cloud. In our architecture, our user registration Lambda will fire an SNS message to a topic, and we will have another Lambda that listens to this topic and...