Send mails using thymeleaf to generate the content and message keys for the subject.
<dependency>
<groupId>ch.brix.camunda.connector</groupId>
<artifactId>mail-thymeleaf-connector</artifactId>
<version>1.0.0</version>
</dependency>Element Template to install the connector in the modeler.
The standard spring mail sender and messages need to be configured in the runtime.
spring:
thymeleaf.cache: false
mail:
default-encoding: UTF-8
host: <host>
username: <username>
password: <password>
port: 587
properties.mail.smtp:
auth: true
starttls.enable: true
protocol: smtp
test-connection: falseFiles named messages.properties (default) and messages_<locale>.properties on the classpath are picked up automatically unless configured otherwise.
Templates can be placed in a folder called templates unless configured otherwise. They work similar to messages. E.g. a file templates/mail/test_en.html would be the template mail/test with locale en.
- VALIDATION basic request validation failed
- FROM illegal from address
- TO illegal to address(es)
- COPIES illegal email addresses in cc or bcc
- TEMPLATE not found or contains errors
- SEND an error occurred while sending mails
- INTERNAL an unexpected internal error
Initial Release
- Set bean name to connector function name to avoid conflicts because the class is just called
Function - Correct link to error codes in tooltip


