feature: nodemailer set

This commit is contained in:
Anushlinux
2025-09-03 18:54:55 +05:30
parent 972ed81192
commit 425475c027
9 changed files with 1235 additions and 21 deletions

13
apps/admin/README.md Normal file
View File

@@ -0,0 +1,13 @@
# Mailer Setup
Configure the following environment variables (e.g., in `.env` at repo root used by `dotenv-cli`):
- SMTP_HOST
- SMTP_PORT (465 for SSL, 587 for TLS)
- SMTP_USER
- SMTP_PASS
- SMTP_FROM (optional, defaults to SMTP_USER)
- SMTP_MAX_CONNECTIONS (optional)
- SMTP_MAX_MESSAGES (optional)
The status update API at `app/api/applications/[applicationId]/status/route.ts` sends an email whenever the status is updated. Templates live in `lib/mail-templates.ts`.