In our project we have a task of sending notification to some user after some task is completed.
Following is the code written in the BPMN2.0 xml -
<serviceTask id="notifyPartner" name="Notify Partner" flowable:type="mail">
<documentation>Notify Partner about the assignment.</documentation>
<extensionElements>
<flowable:field name="to">
<flowable:string><![CDATA[testemail@some.com]]></flowable:string>
</flowable:field>
<flowable:field name="from">
<flowable:string><![CDATA[testemail@some.com]]></flowable:string>
</flowable:field>
<flowable:field name="subject">
<flowable:string><![CDATA[Notify Partner]]></flowable:string>
</flowable:field>
<flowable:field name="text">
<flowable:string><![CDATA[Notify Partner about the assignment.]]></flowable:string>
</flowable:field>
</extensionElements>
</serviceTask>
With a application.properties as -
spring.flowable.mailServerHost=smtp.gmail.com
spring.flowable.mailServerPort=587
spring.flowable.mailServerUserName=testemail@some.com
spring.flowable.mailServerPassword=****
spring.flowable.mailServerUseTls=true
But all this results in no success. It gives the following error -
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
I even tried setting up all the properties in flowable.cfg.xml also
<property name="mailServerHost" value="smtp.gmail.com" />
<property name="mailServerPort" value="587" />
<property name="mailServerUseTls" value="true" />
<property name="mailServerUsername" value="testemail@some.com" />
<property name="mailServerPassword" value="****" />
Is there any other configuration missing? Flowable version used is 6.2.1.