Example for rendering beautiful emails with dynamic content using TailwindCSS
- Build beautiful emails using TailwindCSS
- Add dynamic content to emails
- Render and send emails from Node.js
Recommended OS: Linux
Requirements: Node.js
Setup
npm install(Install NPM dependencies)- Set
MAILJET_PUBLIC_KEYandMAILJET_PRIVATE_KEYin.env(Mailjet)
Commands
npm run dev(Start local development)npx ts-node-dev server.ts(Start mail rendering server, http://localhost:8080)- Render and show email example: http://localhost:8080?name=Flo?&url=https://youtube.com/@flolu
- Render and send email example: http://localhost:8080/send/flo@drakery.com?name=Flo&url=https://youtube.com/@flolu