An extendable serverless mailing system with Nextjs and React mail
/api/send
..env
files.emails
directory..env
file at the project root and set your mailing service credentials:
/api/send
/api/send
endpoint accepts a POST
request with the following JSON payload:
emails/
, e.g., template_order-confirmation.tsx
.
.env
if needed for new variables.
template
to your component filename (without extension).
project.config.ts
file.
Name | Description | Required | Default |
---|---|---|---|
SMTP_HOST | SMTP server host (e.g., smtp.gmail.com) | No | ”smtp-relay.sendinblue.com” |
SMTP_PORT | SMTP server port (e.g., 587) | No | 587 |
MAIL_EMAIL | SMTP username/email | Yes | — |
MAIL_PASSWORD | SMTP password | Yes | — |
IDENTITY_KEY | Auth Key | Yes | — |
git checkout -b feature/my-feature
.git commit -m 'Add my feature'
.git push origin feature/my-feature
.