How can I connect to a outlook.office365.com host using IMAPS (whis SSL connection) protocol ? with a shared folder account?
Properties p = new Properties();
p.put("mail.store.protocol", "imaps");
Session session = Session.getDefaultInstance(p, null);
Store store = session.getStore("imaps");
store.connect("outlook.office365.com",993,"ACCOUNT NAME","PASSWORD");