E-mail notification is an integral part of today’s enterprise systems. Java enables e-mail notification by offering JavaMail API. Using this API, you can send e-mail communications in response to an event (say 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 e-mail communication. Most of the time, firewalls allow outbound communications to e-mail servers without an issue, but if you are running your own local SMTP (e-mail) server, you may need to configure your ...