title: javax.mail.MessagingException: Could not connect to SMTP host locally via netbeans
body: <p>I know that there are many questions on this topic, and I have been searching for an answer for the past 4 months.  Everyone says check host address, port, and firewall.  Well I have done these items, but am still not having any success.  </p>
  
  <p>We are running our web application locally using Apache Tomcat 7.0.27 through Netbeans 7.2.1 and are no longer able to connect to the SMTP server to send emails.  When running the application on a virtual machine located on the server, there is no issue connecting.  We have no problem connecting and sending mail using telnet locally with the same parameters.</p>
  
  <p>We have tried looking at the SMTP logs on the server, and were able to access some logs, but can't find any related to the refused connection.  Which SMTP logs would provide more information on this issue?  I tend to think that since the connection is refused it may not even trigger any logging, is this a correct assumption?  We migrated to IIS7 several months ago and were having trouble accessing IIS 6.0 Manager, so I am not sure that they are even set up correctly.</p>
  
  <p>Does anyone have any ideas of how to further troubleshoot the connection?</p>
  
  <p>Thank you in advance, and please let me know if I can provide any further information.</p>