Skip to content

eggheadio/egghead-fresh-emails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mjml-react email templates

Usage

npm install
npm start

and afterwards just open your browser using the link http://localhost:3000/.

The http server will listen and restart upon each change inside src folder. You just need to refresh a browser window manually.

Running from command line

Generate email.html in root directory:

npm run generate

And you can automate things by sending the generated email to your test inbox:

npm run build
npm run generate | mail -s "$(echo -e "This is a test email\nContent-Type: text/html")" myemail@myprovider.com

Syntax highlighting

Example <MjmlText><pre>const foo = () => {}</pre></MjmlText>


📃mjml documentation


Based on mjml and mjml-react.

About

write react w/ mjml, generate html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published