aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes Problem faced in using the Java Mail Api Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Problem faced in using the Java Mail Api" Watch "Problem faced in using the Java Mail Api" New topic
Author

Problem faced in using the Java Mail Api

Rakesh Shah
Greenhorn

Joined: Feb 14, 2008
Posts: 21
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
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
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.


Android appsImageJ pluginsJava web charts
Rakesh Shah
Greenhorn

Joined: Feb 14, 2008
Posts: 21
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
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
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

Joined: Feb 14, 2008
Posts: 21
hi Ulf, i kept it for some more time and this exception came up.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
Can you telnet into that port, in other words, reach it at all?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem faced in using the Java Mail Api
 
Similar Threads
Sending Email using Java mail API in J2EE
automatic mail from jsp page.
SHA1 digest error for javax/mail/MessagingException
urgent help in java mail
Java Mail Problem