JBoss Community

Email Problem with JBPM

created by Ravi Sawlani in jBPM - View the full discussion

Hi

 

I am trying to send mail using org.jbpm.mail.Mail in a normal node using jBPM's own Mail(org.jbpm.mail.Mail) class as the handler.I get this exception:

17:21:30,747 WARN  [Mail] cannot send mail (3 retries left): Could not connect to SMTP host: localhost, port: 25

17:21:31,747 WARN  [Mail] cannot send mail (2 retries left): Could not connect to SMTP host: localhost, port: 25

17:21:32,763 WARN  [Mail] cannot send mail (1 retries left): Could not connect to SMTP host: localhost, port: 25

17:21:33,763 ERROR [SOAPFaultHelperJAXWS] SOAP request exception

org.jbpm.JbpmException: cannot send email

.

.

.

.

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

  nested exception is:

    java.net.ConnectException: Connection refused: connect

 

how can i send the mail from a particular IP address instead of  "localhost".

Reply to this message by going to Community

Start a new discussion in jBPM at Community