- Install dependencies:
npm install- Create
.env.localin the root with:
GMAIL_USER=yourgmail@gmail.com
GMAIL_PASS=your-app-password
- Run locally:
npm run dev- Deploy to Vercel:
- Push code to GitHub.
- Connect repo on Vercel.
- Add environment variables in Vercel project settings (same as
.env.local).
- Uses Gmail SMTP with Nodemailer.
- Requires an App Password from Google.