Extracting Mail from Microsoft Exchange server 2007 through IMAPS in java
- by abhishekgem84
props.put("mail.debug", "true");
props.setProperty("mail.store.protocol","imaps");
props.setProperty("mail.imaps.auth.plain.disable","false");
props.setProperty("mail.imaps.host","Mail3.connect.com");
props.setProperty("mail.imaps.port","135");
props.setProperty("mail.imaps.user","test");
props.setProperty("mail.imaps.pwd","123");
props.setProperty("mail.imaps.ssl.protocols","SSL");
props.setProperty("mail.imaps.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.setProperty("mail.imaps.socketFactory.fallback", "false");
props.setProperty("mail.imaps.socketFactory.port", "135");
i have done all this but it still says
javax.mail.AuthenticationFailedException: failed to connect, no password specified?
kindly help me out
thanks