diff --git a/src/mailer/mail-templates/structureErrorReport.ejs b/src/mailer/mail-templates/structureErrorReport.ejs index 18b32cd0ab99a7fcf5246656f1b19bd2a4121727..361e823023251a76fd9d3fe584b6ed9ce0d623ef 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 6a055cd4595dc21c7546a30d0a0f791bb5b41f1a..f4153b552a2ee8587a713e7a4a79201bfc351a2b 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 516a30844c6f178ee77134da581d1b44786b6548..b0c1abae641843086712f2c4d84b535a351a4661 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 c4642ab6ecad6861af627ae2431fec4e4094b6d0..5509c50fd4ce7f91ab3ae01085f64b4d5fddd45c 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 364f16cde92a0b856e9abadb9e71882beba4d24b..1b51c574bc6ed24fbeef0faf72fe25dc06a41464 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; } }