This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
How are you setting the username and password?
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: not able to read the mails
 
jQuery in Action, 3rd edition