This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 42974
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: 42974
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: 42974
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?
 
No holds barred. And no bars holed. Except this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!