Skip to content

Commit

Permalink
feat: adding unsubscribe link to mails
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelFerrand committed Nov 26, 2024
1 parent ba33923 commit d3c5687
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions libs/back/mail/src/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,11 @@ export const registryDelegationCreation: MailTemplate<{
subject: ({ delegator }) =>
`Émission d'une demande de délégation de l'établissement ${delegator.name} (${delegator.siret})`,
body: mustacheRenderer("registry-delegation-creation.html"),
templateId: templateIds.LAYOUT
templateId: templateIds.LAYOUT,
params: {
// permet d'afficher le lien "Gérer mes préférences e-mails"
handlePreferencesUrl
}
};

export const expiringRegistryDelegationWarning: MailTemplate<{
Expand All @@ -309,5 +313,9 @@ export const expiringRegistryDelegationWarning: MailTemplate<{
subject: ({ delegator, delegate }) =>
`Expiration prochaine de la délégation entre l'établissement ${delegator.orgId} et l'établissement ${delegate.orgId}`,
body: mustacheRenderer("expiring-registry-delegation-warning.html"),
templateId: templateIds.LAYOUT
templateId: templateIds.LAYOUT,
params: {
// permet d'afficher le lien "Gérer mes préférences e-mails"
handlePreferencesUrl
}
};

0 comments on commit d3c5687

Please sign in to comment.