// Create empty properties
Properties props = new Properties();
//props.put("mail.pop3.host", "");
// Get session
Session session = Session.getDefaultInstance(props, null);
//System.out.print("fgd555");
// Get the store
Store store = session.getStore("pop3");
store.connect(host, username, password);