O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required