• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

emailworm

i have this error like Exception in thread "main" javax.mail.MessagingException: Connect failed;nested exception is: java.net.ConnectException: Connection refused: connect.
pls,provide the solution for this problem.

MainClass.java
0
sunda2010
Asked:
sunda2010
1 Solution
 
Gurvinder Pal SinghCommented:
what is the port number you are connecting to?
is your server accepting the connections on that port?

Check you anti-virus software setup. Chances are that the software is configured to bolck the port that your email server is listening.

http://www.hiteksoftware.com/knowledge/articles/006.htm
http://forums.sun.com/thread.jspa?threadID=590866
http://www.osix.net/modules/article/?id=39
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now