Easy email setup: send mail to maildev

I wanted to test mail service in camunda for a Demo application in office system but it was not working using either gmail or office mail address because of the obvious reasons.

I found a solution as maildev application, so wanted to share the information with community to get benefitted.

I searched google but could not find this configuration anywhere.

Solution:

  1. service task connector details:

<bpmn:serviceTask id=“Activity_1k60azf” name=“send mail”>
<bpmn:extensionElements >
<camunda:connector >
<camunda:inputOutput >
<camunda:inputParameter name=“from”>anything</camunda:inputParameter>
<camunda:inputParameter name=“html”>hello from camunda</camunda:inputParameter>
<camunda:inputParameter name=“subject”>hello from camunda</camunda:inputParameter>
<camunda:inputParameter name=“to”>anything</camunda:inputParameter>
</camunda:inputOutput>
<camunda:connectorId >mail-send</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>

</bpmn:serviceTask>

mail-config.properties details:
mail.transport.protocol=smtp
mail.smtp.host=localhost
mail.smtp.port=1025
mail.smtp.auth=false
mail.smtp.starttls.enable=false

$ npm install -g maildev
$ maildev

  1. run maildev in browser

  2. start the process