generated from betagouv/template-nextjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add EMAIL_EMITTER and fix user creation
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ export const sendReportMail = ({ | |
reportTitle?: string; | ||
}) => { | ||
return transporter.sendMail({ | ||
from: "[email protected]", | ||
from: ENV.EMAIL_EMITTER, | ||
to: recipients, | ||
subject: "CR VIF - Compte rendu" + (reportTitle ? ` : ${reportTitle}` : ""), | ||
text: "Veuillez trouver ci-joint le compte rendu de votre rendez-vous.", | ||
|
@@ -35,7 +35,7 @@ export const sendReportMail = ({ | |
|
||
export const sendPasswordResetMail = ({ email, temporaryLink }: { email: string; temporaryLink: string }) => { | ||
return transporter.sendMail({ | ||
from: "[email protected]", | ||
from: ENV.EMAIL_EMITTER, | ||
to: email, | ||
subject: "CR VIF - Réinitialisation de mot de passe", | ||
text: `Voici le lien de réinitialisation de votre mot de passe : ${ENV.FRONTEND_URL}/reset-password/${temporaryLink}`, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters