Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Problem faced in using the Java Mail Api  RSS feed

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried to use exactly the same steps for using Java Mail Api as defined

Sun Site for Implementing Java Mail

This is the code that i have written for this



but some days back i tried using the java mail api using another code which is without any authentication checks or giving the user name and password, it worked. but this does not seem to work. can somebody please help me out here.
[ February 17, 2008: Message edited by: Rakesh Shah ]
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All kinds of things could go wrong when trying to send email. Turn on JavaMail debugging by calling "session.setDebug(true)". That will print all kinds of info to standard out from which you should be able to figure out what's going wrong.
 
Rakesh Shah
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did turn on the debug mode and the java code run gets stuck here.
i mean it doesnt move forward from this point on
here is the log for that

 
Ulf Dittmer
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That port on that server is open for business. Could this be a firewall issue that blocks this port somewhere along the line?

If you let the code run longer it should eventually time out and provide a more detailed error message.
 
Rakesh Shah
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ulf, i kept it for some more time and this exception came up.

 
Ulf Dittmer
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you telnet into that port, in other words, reach it at all?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!