Hi, I use below code and get the exception
Code Properties props = new Properties(); props = System.getProperties(); props.setProperty("mail.imap.ssl.enable", "true"); props.setProperty("mail.imap.ssl.socketFactory.class","com.example.emaildownloadfromserver.DummySSLSocketFactory"); props.setProperty("mail.imap.ssl.socketFactory.fallback","false"); props.setProperty("mail.imap.ssl.trust", "*"); Session session = Session.getInstance(props, null); Store store = session.getStore("imaps"); store.connect("exchange.domain.com", "du...@kochartech.com", "Password@12"); Exception Exception...javax.mail.MessagingException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.; On Friday, July 12, 2013 2:14:21 AM UTC+5:30, Lew wrote: > > Ashish Sharma wrote: > >> java [sic] mail api is working fine for gmail account. can you please >> guide, how to use it for exchange server? >> >>> > http://lmgtfy.com/?q=Java+Mail+API+connect+to+exchange+server > > -- > Lew > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.