Javamail und Gmail Pop3 SSL

Ich versuche, meine App mit Google Mail zu verbinden, um E-Mails zu überprüfen. Ich muss SSL für POP3 verwenden.

Das ist mein Code:

<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("[email protected]","mypass");
</code>

Und ich bekomme diesen Fehler:

<code>Exception in thread "main" javax.mail.MessagingException: Connect failed;
  nested exception is:
    java.io.IOException: Unexpected response: * OK Gimap ready for requests from x.x.x.x.x z50if25691877wef.13
    at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:210)
    at javax.mail.Service.connect(Service.java:295)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:196)
</code>

Ich denke das hat ein gutes neues: der gmail server hat geantwortet aber ... scheint schlecht auf javamail zu antworten.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage