Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem faced in using the Java Mail Api  RSS feed

 
Rakesh Shah
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 ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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: 42970
73
  • 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: 42970
73
  • 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!