Emails are written with MJML template syntax.
- Run
npx mjml [path to input] -o [path to output]
to generate the html. Output folder isdist
- Copy the html. Go to https://putsmail.com/inliner and paste the html to inline the css.
- Copy the output. That's all.
Install this extension for live previews as your build the templates. Link