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

Introducing the JavaMail API

As you have seen, e-mail systems have relatively complex architectures and use a selection of transport protocols. In the past, a developer wanting to send or retrieve e-mail messages would have to use TCP sockets and, using an appropriate protocol, talk directly to an e-mail server. As you can imagine, coding such applications was typically involved and intensive. Alternatively, a developer would have to use a vendor-specific API to access e-mail functionality, locking their code into one platform or technology. The JavaMail API changes all of this.

The API provides a generic model of an e-mail system, which allows you to send and retrieve messages in a platform independent and protocol independent way. In addition, ...

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