Skip to content

brix-ag/mail-thymeleaf-connector

Repository files navigation

Mail Thymeleaf Connector

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.

Panel 1 Panel 2 Panel 3

Configuration

The standard spring mail sender and messages need to be configured in the runtime.

Mail Configuration

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: false

Messages

Files named messages.properties (default) and messages_<locale>.properties on the classpath are picked up automatically unless configured otherwise.

Mail Templates

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.

Error Codes

  • 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

Releases

1.0

Initial Release

1.1 (coming)

  • Set bean name to connector function name to avoid conflicts because the class is just called Function
  • Correct link to error codes in tooltip

About

Camunda 8 Connector to send mails with thymeleaf.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages