4 Replies Latest reply on Jul 17, 2008 6:40 AM by kukeltje

    Could not send mail with mail node

    1womps1

      Hi,I'm trying to send mail using the mail nodes ,my jbpm.cfg.xml file is the following

      <jbpm-configuration>
      <string name="resource.mail.templates" value="jbpm.mail.templates.xml" />
      <string name="jbpm.mail.smtp.host" value="xxx.xxx.xxx.xxx" />
      <string name='jbpm.mail.from.address' value='jboss@eds.com' />
      <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
      <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
      </jbpm-configuration>
      

      when i deploy the process i have the following message:

      Error completing task: An exception of type "org.jbpm.JbpmException" was thrown. The message is: couldn't send email
      


      and in the console i have these errors

      Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localh
      ost, port: 25;
       nested exception is:
       java.net.ConnectException: Connection refused: connect
       at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
       at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:37
      0)
       at javax.mail.Service.connect(Service.java:275)
       at javax.mail.Service.connect(Service.java:156)
       at javax.mail.Service.connect(Service.java:105)
       at javax.mail.Transport.send0(Transport.java:168)
       at javax.mail.Transport.send(Transport.java:98)
       at org.jbpm.mail.Mail.send(Mail.java:206)
       ... 68 more
      Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:519)
       at java.net.Socket.connect(Socket.java:469)
       at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
       at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
       at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
      


      thanks for your help