[jboss-user] [JBoss jBPM] - Could not send mail with mail node

1womps1 do-not-reply at jboss.com
Wed Jul 16 09:40:49 EDT 2008


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="172.20.1.183" />
  | <string name='jbpm.mail.from.address' value='jboss at 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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164753#4164753

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164753



More information about the jboss-user mailing list