aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes not able to read the mails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "not able to read the mails" Watch "not able to read the mails" New topic
Author

not able to read the mails

dhanunjaya kumar
Greenhorn

Joined: Sep 22, 2006
Posts: 16
hi
i am trying to read the mails from my inbox through pop3 server,
the program was getting compiled ,
while running the program iam getting the

-ERR Logon failure: unknown user name or bad password.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
How are you setting the username and password?


Ping & DNS - my free Android networking tools app
dhanunjaya kumar
Greenhorn

Joined: Sep 22, 2006
Posts: 16
i am using the Authenticator

in the below code PopupAuthenticator is the Class which extends Authenticator

here is the code:
Authenticator auth = new PopupAuthenticator();// Pop
Session session =
Session.getDefaultInstance(props, auth);
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Does the PopupAuthenticator ask for username and password? You'll have to provide more detail about how this is supposed to work.
dhanunjaya kumar
Greenhorn

Joined: Sep 22, 2006
Posts: 16
it is working now ,it is some other problem with the server,

Thankyou for your reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to read the mails