如何使用IMAPS(SSL SSL连接)协议连接到outlook.office365.com主机? 使用共享文件夹帐户?
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");