Skip to content
Snippets Groups Projects
Commit da10fd5a authored by Chakib BENHABIB's avatar Chakib BENHABIB Committed by Sébastien DA ROCHA
Browse files

Feat/admin reply email to user

parent bdc78bde
No related branches found
No related tags found
1 merge request!16Support can ReplyTo user
......@@ -520,4 +520,5 @@ export class Email {
to: string[];
subject: string;
html: string; // As html
}
\ No newline at end of file
replyTo?: string; //optional
}
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment