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
The port should be 995 for gmail: http://support.google.com/mail/bin/answer.py?hl=en&answer=13287
I think it will help you
Properties properties = new Properties();
properties.put("mail.pop3.host", pop3Host);
properties.put("mail.pop3.ssl.enable", true);
properties.put("mail.pop3.ssl.trust", "*");
properties.put("mail.pop3.port", 995);
Session emailSession = Session.getDefaultInstance(properties); `enter code here`