Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pop3 works, imap fails with No login methods supported!

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code, mostly from the Sun java examples that connects to a mail server to fetch messages. Using the standard mail.jar and activation.jar from Sun.

When I specify "pop3" it works fine. But when i try imap, it fails. throwing a "No login methods supported!" message





I am at a loss as to what is wrong. I would know how to proceed if it returned "can't login" or "bad password" or any other exception hinting that I'm passing in bad values, but no login method???
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is IMAP supported by the mail server?
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaMail FAQ suggests turning on debug mode for the mail session and examining the output for this kind of problem.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Is IMAP supported by the mail server?

Yes, ports opened in the firewalls, etc.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:The JavaMail FAQ suggests turning on debug mode for the mail session and examining the output for this kind of problem.


Log results:



Note: the first line is my debug line of the subclass extending Authenticator, verifying that there are non-null password, Yet the Javamail debug line shows: user=fnfbook, password=<null>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!