Summary
In this chapter, we learned to use the Java Mail API to send emails using a Gmail account. We learned how to send an email message with plain text or with rich HTML. We also learned how to include To, CC, and BCC recipient fields in our email message. And finally, we learned how to include attachments within our email message.
In the next chapter, we are going to learn how to secure our enterprise application with the newly introduced Java Security API 1.0, which was introduced in the Java EE 8 specification for the first time.