linagora / Twake

Twake is a secure open source collaboration platform to improve organizational productivity.
https://twake.app
GNU Affero General Public License v3.0
1.79k stars 195 forks source link

[Mail digest] Email builder #2491

Closed RomaricMourgues closed 2 years ago

RomaricMourgues commented 2 years ago

US: https://www.notion.so/linagora/Email-notification-deb6cac3b2a6480c840b44b8ac6d53f5

This issue is about creating an email builder that will be able to generate html and text using a template name, and some data.

For this we'll use Twig or an equivalent https://twig.symfony.com/ (twig is initialy for php so something else will be better)

Note: templates structure is for each language, a _structure.twig.html and a [name of template].twig.html that extends it:

templates/
  fr/
    _structure.twig.html
    notification-digest.twig.html
    notification-digest.subject.twig.html #Optional, contains the subject / title of the email
  en/
    ...

Note: the design to implement (you'll find the figma here: https://www.figma.com/file/uLw3iWnOEGaRlJnfPz4Pv0/Twake.new?node-id=3332%3A165844): Screenshot 2022-09-05 at 12.57.17.png