View RSS Feed

Recent Blogs Posts

  1. Java Mail API Store and folder

    by , 04-25-2012 at 10:56 PM
    When session is obtained, connection is made b/w javax.mail.Store & host, authenticator, port, username/password. Store objects which are involved in implementation of specified protocol might be formed by protocol information passage to the getStore() method.

    Java Code:
    // create object of store class.
    Store store = session.getStore("pop3");
    store.connect(host, username, password);
    After connecting to store you need to get a folder that holds ...