when i connect to my imap server using imaps,it failes.
can you tell me how to ignore server cert error in javamail
Exception in thread \"main\" java
I was the same issue, using
MailSSLSocketFactory socketFactory= new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true); prop.put("mail.pop3s.ssl.socketFactory", socketFactory);
com.sun.mail.util.MailSSLSocketFactory
it's works!!