Connection refused error

  • Share
  • Share

Applies to:
NA

Description:
Occurs while trying to send a message

Cause:
The host you’re trying to connect to is most likely not running a mail server.

JAVA-Mail

  1. admin
    March 20th, 2009 at 10:28 | #1

    If you’re trying to connect to a web mail service such as Yahoo, you can’t usually use the web host name (e.g., “yahoo.com”) since this host doesn’t run the required mail server. Instead, you’ll need to learn the name of the host running the required mail server; contact your web mail provider for this information. Note that some web mail providers don’t offer this service, instead allowing you to access your mail only through a browser.
    If you’re not trying to connect to a web mail account, but instead are trying to connect to a host on your local network, then most likely the host you’re trying to connect to is not running a mail server. Sometimes this will occur if you forget to set (for example) the “mail.smtp.host” property, which will cause you to try to connect to “localhost”. Most Windows machines do not run a mail server, although many UNIX (Solaris, Linux, etc.) machines do. Thus, attempts to connect to “localhost” on Windows machines will usually fail with a “connection refused” error.

  1. No trackbacks yet.