Exploring the JavaMail API

So far, today's lesson has concentrated on sending e-mail messages, but the JavaMail API provides support for other common e-mail operations, such as retrieving messages and attachments and deleting messages on the server. The API provides numerous classes that allow you to perform these types of operations. The remainder of today's lesson gives you an introduction to these operations. For a complete reference to the API's interfaces, classes, and methods, refer to the API documentation.

Retrieving Messages

Earlier in today's lesson, you learned that there are a number of message retrieval protocols, and that most prevalent of these are POP3 and IMAP. The application you are about to build uses POP3 to retrieve messages ...

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.