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

Get Sams Teach Yourself J2EE™ in 21 Days 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.