diff --git a/src/legacy/legacy.model.ts b/src/legacy/legacy.model.ts index 48975cb6ca5d2ec6232be95a4fcb4f259c2164d2..4949391b17b09dacbe48113b40afbc5606250005 100644 --- a/src/legacy/legacy.model.ts +++ b/src/legacy/legacy.model.ts @@ -520,4 +520,5 @@ export class Email { to: string[]; subject: string; html: string; // As html -} \ No newline at end of file + replyTo?: string; //optional +} diff --git a/src/legacy/legacy.service.ts b/src/legacy/legacy.service.ts index 7412c41976ae26c89ba816cb90e26122abf4cb1e..9f90509f049078ac5bdb116859d0631c2495609e 100644 --- a/src/legacy/legacy.service.ts +++ b/src/legacy/legacy.service.ts @@ -543,6 +543,7 @@ export class LegacyService { await Promise.all([ this.sendEmail({ html: adminEmail, + replyTo: token.email, to: [this.conf.userSupportMailbox], subject: 'Demande d’accès aux données', }), @@ -643,6 +644,7 @@ export class LegacyService { await Promise.all([ this.sendEmail({ html: adminEmail, + replyTo: token.email, to: [this.conf.userSupportMailbox], subject: 'Demande de renouvellement d’accès aux données', }), @@ -747,6 +749,7 @@ export class LegacyService { await Promise.all([ this.sendEmail({ html: adminEmail, + replyTo: token.email, to: [this.conf.userSupportMailbox], subject: 'Demande de suppression d’accès aux données', }), @@ -834,4 +837,4 @@ export class LegacyService { handleError(error, new InternalServerErrorException('Couldn\'t send email.')); } } -} \ No newline at end of file +}