Skip to content

Generate responsive email templates using the MJML framework.

Notifications You must be signed in to change notification settings

brentchow/MJML-Email-Generator

Repository files navigation

MJML Email Template Generator

This email template generation tool uses mjml, a framework for creating responsive emails that are widely supported by email clients.

Getting started

Install the required dependencies using Yarn.

yarn

Start developing and watch for changes.

yarn dev

Lint

Lint your code.

yarn lint

Production email templates

For production builds compile minified email templates.

yarn build

Creating a new template

Add your new .mjml email template to the ./src/templates/ directory. Compiled templates can be found as an .html file in the ./dist/ directory.

Creating custom components

Custom components can be added to the ./src/components/ directory. Any new custom components will also need to be added to the ./.mjmlconfig file. Use the ./dist path.

Examples

3 examples can be found in /components. Each of them introduce new features, so they should be checked in this order: MjBasicComponent, MjImageText, MjLayout.

For more complex examples, have a look at standard MJML components code such as mj-carousel.

A step-by-step tutorial is available here.

About

Generate responsive email templates using the MJML framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published