This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
Marshal

Joined: Mar 22, 2005
Posts: 41088
    
  43
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: 41088
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: not able to read the mails
 
Similar Threads
Mail Data using packets
not able to receive mails
how to track emails from particular mail id?
JavaMail & MS Exchange Server
retrieving only new messages using POP3-Possible????