From 173a49a4861770f05a2f8fe3a8efe452a528e62f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20PAILHAREY?= <rpailharey@grandlyon.com> Date: Mon, 17 Apr 2023 07:16:13 +0000 Subject: [PATCH] feat(mail): updated signature + fixed typos --- src/mailer/mail-templates/structureErrorReport.ejs | 2 +- src/mailer/mail-templates/structureModificationNotification.ejs | 2 +- .../mail-templates/structureModificationNotification.json | 2 +- src/mailer/mailer.service.spec.ts | 2 +- src/mailer/mailer.service.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mailer/mail-templates/structureErrorReport.ejs b/src/mailer/mail-templates/structureErrorReport.ejs index 18b32cd0a..361e82302 100644 --- a/src/mailer/mail-templates/structureErrorReport.ejs +++ b/src/mailer/mail-templates/structureErrorReport.ejs @@ -7,5 +7,5 @@ Voici le message:<br /> <strong><%= content %></strong><br /> <br /> <a href="<%= config.protocol %>://<%= config.host %><%= config.port ? ':' + config.port : '' %>/acteurs?id=<%= id %>" - >Acceder à votre structure</a + >Accéder à votre structure</a >. diff --git a/src/mailer/mail-templates/structureModificationNotification.ejs b/src/mailer/mail-templates/structureModificationNotification.ejs index 6a055cd45..f4153b552 100644 --- a/src/mailer/mail-templates/structureModificationNotification.ejs +++ b/src/mailer/mail-templates/structureModificationNotification.ejs @@ -3,5 +3,5 @@ Bonjour,<br /> Un utilisateur a modifié une ou plusieurs informations sur la fiche de sa structure (<%= structureName %>). <br /> <a href="<%= config.protocol %>://<%= config.host %><%= config.port ? ':' + config.port : '' %>/acteurs?id=<%= id %>" - >Acceder à cette structure</a + >Accéder à cette structure</a >. diff --git a/src/mailer/mail-templates/structureModificationNotification.json b/src/mailer/mail-templates/structureModificationNotification.json index 516a30844..b0c1abae6 100644 --- a/src/mailer/mail-templates/structureModificationNotification.json +++ b/src/mailer/mail-templates/structureModificationNotification.json @@ -1,3 +1,3 @@ { - "subject": "Une fiche de structure à été mise à jour, Réseau des Acteurs de la Médiation Numérique de la Métropole de Lyon" + "subject": "Une fiche de structure a été mise à jour, Réseau des Acteurs de la Médiation Numérique de la Métropole de Lyon" } diff --git a/src/mailer/mailer.service.spec.ts b/src/mailer/mailer.service.spec.ts index c4642ab6e..5509c50fd 100644 --- a/src/mailer/mailer.service.spec.ts +++ b/src/mailer/mailer.service.spec.ts @@ -115,7 +115,7 @@ describe('MailerService', () => { it('should add signature', async () => { const test = '<p>test email</p>'; expect(service.addSignature(test)).toBe( - '<p>test email</p><br /><br /><p>L’équipe projet inclusion numérique.</p><img src="http://localhost:4200/assets/logos/resin.jpg" alt="Logo resin" width="168" height="58"><br /><br /><p>Ce mail est automatique. Merci de ne pas y répondre.</p>' + `<p>test email</p><br /><br /><p>L’équipe projet inclusion numérique.</p><p style="font-family:helvetica;font-size:24px;font-weight:bold;margin:0;">rés<span style="color:red;font-weight:400;">’in</span></p><br /><br /><p>Ce mail est automatique. Merci de ne pas y répondre.</p>` ); }); }); diff --git a/src/mailer/mailer.service.ts b/src/mailer/mailer.service.ts index 364f16cde..1b51c574b 100644 --- a/src/mailer/mailer.service.ts +++ b/src/mailer/mailer.service.ts @@ -75,7 +75,7 @@ export class MailerService { * @param html */ public addSignature(html: string): string { - html += `<br /><br /><p>L’équipe projet inclusion numérique.</p><img src="${this.configurationService.appUrl}/assets/logos/resin.jpg" alt="Logo resin" width="168" height="58"><br /><br /><p>Ce mail est automatique. Merci de ne pas y répondre.</p>`; + html += `<br /><br /><p>L’équipe projet inclusion numérique.</p><p style="font-family:helvetica;font-size:24px;font-weight:bold;margin:0;">rés<span style="color:red;font-weight:400;">’in</span></p><br /><br /><p>Ce mail est automatique. Merci de ne pas y répondre.</p>`; return html; } } -- GitLab