AnsweredAssumed Answered

E-mail Configuration

Question asked by geetha on May 17, 2015
Latest reply on Feb 24, 2016 by kecondezo
Hi all,

I am new to Activiti BPM, I am trying to customize the source code and making changes to that, right now i made few changes like logo etc. in activiti-webapp-explorer2 project and deployed war file in Tomcat and got the output as according to changes. But now i am trying to configure the e-mail server to point to g-mail server by adding below configuration in activiti-webapp-explorer2\src\main\resources\activiti-custom-context.xml and build, re-deployed in tomcat.

<property name="mailServerHost" value="" />
           <property name="mailServerPort" value="587" />
           <property name="mailServerUseSSL" value="false" />
           <property name="mailServerUseTLS" value="true" />
           <property name="mailServerDefaultFrom" value="" />
           <property name="mailServerUsername" value="" />
           <property name="mailServerPassword" value="xyz123" />

When i am trying to execute laptopOrdering-HumanProcess workflow given in activiti pdf, the e-mail task is failing and giving below error. Please let me know where do we need to put this configuration in the source code.

Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:25
at org.apache.commons.mail.Email.sendMimeMessage(
at org.apache.commons.mail.Email.send(
at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(
… 75 more
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(
at com.sun.mail.smtp.SMTPTransport.protocolConnect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(
at javax.mail.Transport.send0(
at javax.mail.Transport.send(
at org.apache.commons.mail.Email.sendMimeMessage(
… 77 more
Caused by: Connection refused: connect
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)

Below version used:
Activiti Version: 5.17.0
Tomact 7