From 969c5c5d59c1abc0078707becaaf9e8c1a74c0bc Mon Sep 17 00:00:00 2001 From: Mariela Date: Wed, 27 Jul 2022 03:04:35 -0600 Subject: [PATCH 1/2] add estilo al correo de registrar admin comunidad --- .../src/email.controller.ts | 8 +- .../src/mails/emailCreateUserAdmin.hbs | 129 +++++++++-------- .../mails/emailCreateUserAdminCommunity.hbs | 136 ++++++++++-------- .../{Logo Katoikia.png => Logo_Katoikia.png} | Bin 4 files changed, 155 insertions(+), 118 deletions(-) rename servicio-notificaciones/src/mails/images/{Logo Katoikia.png => Logo_Katoikia.png} (100%) diff --git a/servicio-notificaciones/src/email.controller.ts b/servicio-notificaciones/src/email.controller.ts index 66ffbdb5..d1363138 100644 --- a/servicio-notificaciones/src/email.controller.ts +++ b/servicio-notificaciones/src/email.controller.ts @@ -22,7 +22,7 @@ export class EmailController { @MessagePattern({ cmd: 'html' }) async postHTMLEmail(@Payload() user: any) { const url = "http://localhost:3000/"; - const image = "images/email.ong"; + const image = "images/email.png"; var response = await this.mailService.sendMail({ to: user["email"], from: "mbonilla.guti@gmail.com", @@ -48,7 +48,7 @@ export class EmailController { async emailCreateUserAdmin(@Payload() user: any) { const url = "http://localhost:3000/"; const image = "images/email.png"; - const logo = "images/Logo Katoikia.svg"; + const logo = "images/Logo Katoikia.png"; var response = await this.mailService.sendMail({ to: user["email"], from: "mbonilla.guti@gmail.com", @@ -69,8 +69,8 @@ export class EmailController { cid: 'image_email' //my mistake was putting "cid:logo@cid" here! }, { - filename: 'Logo Katoikia.svg', - path: __dirname + '/mails/images/Logo Katoikia.svg', + filename: 'Logo_Katoikia.png', + path: __dirname + '/mails/images/Logo_Katoikia.png', cid: 'logoKatoikia' //my mistake was putting "cid:logo@cid" here! } ] diff --git a/servicio-notificaciones/src/mails/emailCreateUserAdmin.hbs b/servicio-notificaciones/src/mails/emailCreateUserAdmin.hbs index e14f72e0..334dfd5b 100644 --- a/servicio-notificaciones/src/mails/emailCreateUserAdmin.hbs +++ b/servicio-notificaciones/src/mails/emailCreateUserAdmin.hbs @@ -10,6 +10,10 @@ + +