13.5. Advanced Messaging with JavaMail

The examples up until now have been pretty straightforward. They only scratch the surface of JavaMail, however. Simple tasks are easy to perform in JavaMail, but more advanced functionality is available. Let's take a further look at what JavaMail has to offer.

13.5.1. JavaMail Event-Handling Model

The JavaMail API uses the JDK1.1 event-handling model, which readers may already be familiar with from using the Abstract Windowing Toolkit (AWT) and Swing. For those without prior experience with this model, a brief over view is offered. Readers acquainted with this material may choose to skip to Section 13.5.1.2.

13.5.1.1. Overview

AWT event handling in JDK1.02 used a clumsy callback mechanism that required developers ...

Get Java™ Network Programming and Distributed Computing 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.