Posted on 2009-12-30
Last Modified: 2013-12-14
i have this error like Exception in thread "main" javax.mail.MessagingException: Connect failed;nested exception is: Connection refused: connect.
pls,provide the solution for this problem.
Question by:sunda2010
    1 Comment
    LVL 40

    Accepted Solution

    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.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Best free Visio Editor? 2 65
    Java virtual machine monitoring tools 3 31
    JVM encoding. How to change encoding. 27 55
    java set up 1 37
    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now