Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Couldn't get Message List: Connect failed?!  RSS feed

 
lyo Yashnoo
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone:

I want to get Mail list using javamail API. My code is:


When I run it. Exception happen:

My username and password is correct. Maybe I need set proxy to javamail. How to set proxy using javamail for get Mail list? THks!
 
asnmurthy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try run like this
java -DsocksProxyHost=<Your Proxy IP address> <your program name>

Regards,
Murthy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!