© Josh Juneau 2017

Josh Juneau, Java 9 Recipes, 10.1007/978-1-4842-1976-8_19

19. E-mail

Josh Juneau

(1)Hinckley, Illinois, USA

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

Get Java 9 Recipes: A Problem-Solution Approach, Third Edition 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.