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 ...