Hello,
I found this code in the pdf document from the sun's website
// Get a Session object
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// Get a Store object
Store store = null;
if (url != null) {
URLName urln = new URLName(url);
store = session.getStore(urln);
store.connect();
}
Constructor for URLName: URLName(java.lang.String protocol, java.lang.String host, int port, java.lang.String file, java.lang.String username, java.lang.String password)
There might be another way, i.e. connecting to the POP3Store
I think you can connect to the POP3Store directly
Constructor : POP3Store(Session session, URLName url, java.lang.String name, int defaultPort, boolean isSSL)
let us know how it goes
good luck
-Amit