Try it live
There are a couple of ways to install MJML on your system
Download the binary
You can download MJML for Mac and Linux. Unfortunately, MJML is not available yet on Windows.
Use a package manager
Install with NPM
Make sure you have
installed on your system
npm install mjml
After the installation
Some useful command lines to use MJML
Once installed, you can invoke the engine from the command-line:
$ mjml -r index.mjml
This will output the compiled HTML to stdout.
You can also watch a file to automatically update the output file (index.html) on any changes:
$ mjml --watch index.mjml -o index.html
To save the HTML result to a file of your choice use:
$ mjml -r index.mjml -o index.html
Check out the
of our documentation to make the use of MJML.
Use MJML in your favorite editor
Plugins for Atom and Sublime Text are available.
Subscribe to our newsletter
Join our mailing list to receive news from the MJML team.
Thanks for joining the community!
Oops, something went wrong.
Please fill in the email field.
Please provide a valid email address.