This directory contains a React Email application which is used to write email templates using React JSX.
These templates are then built into *.html files which are then loaded at runtime to dynamically insert variables before sending the email off. View Backend Implementation below for details.
- pnpm
It is STRONGLY recommended that you follow the setup directions for
pnpminside of docs/setup/README.md
- Run
pnpm ito install all dependencies - Run
just devfrom the root directory to run the React Email dev server with sane defaults - Run
pnpm buildto build all React Email files underemails/ - If you would like to build & copy all template files to the backend, run
just email-genfrom the root directory
Last updated: 02/15/2026
ReactEmailTemplater.java is the wrapper that allows the backend to use React Email templates.
Note
Find ReactEmailTemplaterImpl.java here
-
ReactEmailTemplaterwill load the classpath HTML resource into a string. -
This will then be passed into
JSoupso we can use DOM operations to insert our variables into the template. -
Once complete, we will then return the modified template back as a string.
ReactEmailTemplaterTest.javaAuthController.javawhere the school email template is used to send school verification emails