While I am trying to connect through java mail
the server is responding unexpected
the problem is that sometimes the same program connects and get the mails but some times it throws
javax.mail.AuthenticationFailedException: EOF on socket at
com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:208) at
javax.mail.Service.connect(Service.java:295) at
javax.mail.Service.connect(Service.java:176) at
newpackage.PmsPOP3Client.main(PmsPOP3Client.java:44)
error
when server says
S: +OK Hello there.
C: CAPA
S: +OK Here's what I can do:
i can connect and fetch all mails
S: EOF
i cant even connect to server
my code
import java.util.*;
import javax.mail.*;
import javax.mail.event.ConnectionEvent;
import javax.mail.event.Conne