Javamail and Gmail Pop3 SSL
i'm trying to connect my app to Gmail to check emails. I must use SSL for POP3. This is my code: Properties props = new Properties(); props.put("mail.host", "pop.gmail.com"); props.put("mail.store.protocol", "pop3s"); props.put("mail.pop3s.auth", "true"); props.put("mail.pop3s.port", "993"); Session session = Session.getDefaultInstance(props, null); Store store=session.getStore(); store.connect("myuser@gmail.com","mypass"); And I get this error: Exception in thread "main" javax.mail.MessagingException: Connect failed; nested exception is: java.io.IOException: Unexpected response: * OK Gimap