On that note, if you're using Windows 2000 and XP Professional, you can simply install a SMTP service on your computer. It's part of IIS, though, which means you'll have to install that if you haven't already.
If you want to see if you have it installed, goto Start->Control Panel->Administrative Tools. If you have it installed, you should see a shortcut there that says "Internet Information Services". Open that up, and you can configure both IIS and any of it's related services, including SMTP. If you don't have it installed, and want to install it, goto Start->Control Panel->Add or Remove Programs and click on "Add/Remove Windows Components". You'll be shown a list of things that you can install, one of which is IIS. Might be overkill, though, and if you do install it or have it running, you want to make EXTRA sure your computer isn't visible to the outside world on port 25. You can configure the SMTP service to deny connections from anything but localhost, for example. John -----Original Message----- From: Burden, Parker To: Tomcat Users List Sent: 12/30/02 8:56 AM Subject: RE: Newbie: Java Mail Problem David- It looks like something strange is happening with your configuration. I am not familiar with the example that you are talking about, but if you look at the exception, it looks like it is trying to connect to port 25 (smtp) of localhost, and not your verizon SMTP server. Localhost normally resolves to your own machine (your XP box in this case), and I doubt you have an SMTP server running there, and thus the connection failure. Perhaps there is another location you must use to specify the verizon server? On a related note, be prepared to potentially have problems once you have the example pointed to the right server. Not all servers allow "ad-hoc" connections to their SMTP server. If you find yourself in this boat (it pointing to verizon but still getting connection failures) let me know and I can try to step you through debugging SMTP connectivity errors. Parker Burden Senior Systems Engineer JC4I/INRI/DMS 757-249-1234 [EMAIL PROTECTED] -----Original Message----- From: David Diskin [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 4:32 PM To: [EMAIL PROTECTED] Subject: Newbie: Java Mail Problem I've just set up Tomcat 4.1.18 on my Windows XP Home PC. I installed it as a service. I have no problem connecting to the Tomcat main web page. I reconfigured conf/server.xml and changed to value of mail.smtp.host to "smtp.verizon.net", my isp mail server. However, when I go to run the jsp send mail example, I get the following exception. Can anyone help on this? ====================================================== ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at SendMailServlet.doPost(SendMailServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tion FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base .java:493) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241 5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:43 2) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:53 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .jav a:530) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>