From 5e8bdadb4734c1bd9453d75bdeedd630af559137 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Tue, 8 Oct 2024 11:22:47 +0200 Subject: [PATCH] feat: add mail section in local dev --- docs/ecolyo/Technical/mail.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/ecolyo/Technical/mail.md b/docs/ecolyo/Technical/mail.md index c7f4306..6f9a088 100644 --- a/docs/ecolyo/Technical/mail.md +++ b/docs/ecolyo/Technical/mail.md @@ -75,6 +75,17 @@ const mjml2html = require('mjml-browser'); - [Mjml live editor](https://mjml.io/try-it-live/bohYnxKkCq-) +### Send mails in local development + +Build the app in dev mode and run the desired service. + +```sh +yarn build-dev +yarn run cozy-konnector-dev -m manifest.webapp ./build/services/monthlyReportNotification/ecolyo.js +``` + +Mailhog will intercept the mails and display them at http://cozy.tools:8025/ + ## 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. -- GitLab