From b2f5912f2d4972fc15d01d3c820e44cab68d3b73 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Thu, 18 Jan 2024 08:10:49 +0000 Subject: [PATCH] feat(mail): add details --- docs/ecolyo/technical/mail.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/ecolyo/technical/mail.md b/docs/ecolyo/technical/mail.md index 5a1b471..7d3bcb4 100644 --- a/docs/ecolyo/technical/mail.md +++ b/docs/ecolyo/technical/mail.md @@ -2,14 +2,11 @@ ## Explanation -A templating system was needed for the app. In order to make it easy to use and also responsive, two libraries has been used : +Two templating libraries are used, they allow easy editing and responsive : -- [Handlebars](https://handlebarsjs.com/) -- [MJML](https://mjml.io/) +- [Handlebars](https://handlebarsjs.com/) is used as a semantic template motor. It allow us to split email template in order to reuse some parts (header, footer ...) -Handlebars is used as a semantic template motor. It allow us to split email template in order to reuse some parts (header, footer ...) - -Mjml is a lib providing a syntax allowing developers to easily build responsive templates. +- [MJML](https://mjml.io/) is a lib providing a syntax allowing developers to easily build responsive templates. ## Usage @@ -77,3 +74,11 @@ const mjml2html = require('mjml-browser') ### Useful links - [Mjml live editor](https://mjml.io/try-it-live/bohYnxKkCq-) + +## Bounce token + +A bounce token stored in the profile of each user is sent in email. It allows us to track if user clicks on links. + +## Unsubscribe + +A user can unsubscribe to our newsletter by a link in each mails. It **does not** require authentication. This link is built with a `sharecode` token that contains specific permissions to turn off the `sendAnalysisNotification` property in the user profile. -- GitLab