• Post Reply Bookmark Topic Watch Topic
  • New Topic

pop3 works, imap fails with No login methods supported!  RSS feed

 
Rancher
Posts: 4686
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???
 
Sheriff
Posts: 21204
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is IMAP supported by the mail server?
 
Sheriff
Posts: 23128
45
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: 4686
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: 4686
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>
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!