Unfortunately, it is new and not as widely deployed as POP3. NNTP, the Usenet protocol, and Unix mbox are also available from third parties. While downloading JavaMail from Sun , check the list of service providers and grab a copy of POP3. FunnyMail FunnyMail is a simple application that illustrates how to use JavaMail. Listing 1 is FunnyMail's constructor.
Sessions manage configuration options and authentication.
The FunnyMail constructor accepts a URL to the messaging system as a parameter. JavaMail stores URLs in URLName objects. As the name implies, URLName only stores the URL name. Store represents a mailbox. A Store can contain multiple folders, but be aware that POP3, unlike IMAP, supports only one folder.