"Simple mail message" means the e-mail sent will only be text-based with no HTML formatting, no images, and no attachments. In this section, consider a scenario where we are sending a welcome mail to the user as soon as the user gets their order placed in the application. In this scenario, the mail will be sent after the database insertion operation is successful.
Create a separate folder, called
com.packt.mailService, for the mail service. The following are the steps for sending mail using the
MailSender interface and