React Email
library
Template.VERIFY_EMAIL
.
packages/mailer
. The preview of emails is launched automatically when you launch the application using turborepo or Docker, the application will be available on port 4000.
emails
folder.src/template.ts
file, import your component and props interface.Template
enum, EmailComponent
object and TemplateProps
type.sendTemplate
function from the emailService
is used. This function accepts an object with properties specifying the recipient, subject line, template to be used, and an object with parameters to be filled into the template:
VERIFY_EMAIL
template is used, and the user’s first name and the reset password URL are passed as parameters to be substituted into the template.