13.3. Testing the JavaMail Installation

JavaMail ships with a small number of protocol providers (code plug-ins for the JavaMail API that implement specific Internet protocols). Currently, the Simple Mail Transfer Protocol (SMTP) and the Internet Message Applications Protocol (IMAP) are included. Third-party implementations are also available, and a separate download from Sun Microsystems is offered for POP3 support. Our first example lists the available mail protocol implementations and their properties.

NOTE

Again, developers using JavaMail 1.2 will not require the additional download of a POP3 provider.

Code for ProviderList

 import javax.mail.*; ...

Get Java™ Network Programming and Distributed Computing 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.