|
From: <hak...@la...> - 2005-11-05 12:35:12
|
Hi! I=92m just started to use the wrapper to make a Windows service of my = java application. It works perfectly when i run it as a consle but when i=92m try to send an email with wrapper = as a windows service i get: javax.mail.MessagingException: Could not connect to SMTP host: mail.steencon.se, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322) at javax.mail.Service.connect(Service.java:236) at javax.mail.Service.connect(Service.java:137) at javax.mail.Service.connect(Service.java:86) at javax.mail.Transport.send0(Transport.java:150) at javax.mail.Transport.send(Transport.java:80) at se.cesp.delivery.common.util.EmailCommunicator.send(EmailCommunicator.jav= a:1 88) at se.cesp.delivery.impl.OfferWebbEmail.execute(OfferWebbEmail.java:95) at se.cesp.delivery.common.util.DeliveryInvoker.run(DeliveryInvoker.java:81)= at java.lang.Thread.run(Thread.java:534) It doesn=92t matter i run the service with system account or = administrator(as with console), it=92s the same result. The java application also uses FTP and it works fine in both ways. Any ideas? Thanks in advance H=E5kan ---------------------------------------------------------------- H=E5kan Fransson Phone: +46(0)90 - 786=A074 93 Ladokenheten Fax: +46(0)90 - 786 69 91 Ume=E5 University www: www.umu.se/ladokenheten SE - 90187 Ume=E5 ------------------------------------------------------------- |