In today's lesson, you learned all about e-mail systems and the JavaMail API. The lesson introduced you to the main packages and classes of the API. Building on this, you saw how to write code that performed a number of day-to-day e-mail tasks, such as sending, retrieving and deleting messages, authenticating users, and sending and retrieving attachments.
Although today's example applications ran from the command line, they are all simple to migrate to fit within J2EE components, such as EJBs, servlets, and JSPs. In addition, you can quite simply upgrade the user interfaces for these applications so that they used Swing or AWT components.