© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. Juneau, L. ManelliJava 17 Recipeshttps://doi.org/10.1007/978-1-4842-7963-2_14

14. Email

Josh Juneau1   and Luciano Manelli2
(1)
Hinckley, IL, USA
(2)
TARANTO, Taranto, Italy
 

Email notification is an integral part of today’s enterprise systems. Java enables email notification by offering JavaMail API. Using this API, you can send email communications in response to an event (e.g., a completed form or a finalized script). You can also use the JavaMail API to check an IMAP or POP3 mailbox.

To follow along with the recipes in this chapter, make sure that you have set up your firewall to allow email communication. Most of the time, firewalls allow outbound communications ...

Get Java 17 Recipes: A Problem-Solution Approach 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.