Creating emails with the Maily API — A how to (part 1)

Getting started

<your project folder>
└── components
| └── html
| └── text
└── test-results
└── json

Installing our dependencies

{
"presets": ["es2015","react"]
}

Creating our first component

module.exports = {
colors: {
},
distance: {
},
fontSize: {
},
width: {
},
fonts: {
}
};
module.exports = {
colors: {
green: '#8BC43F'
},
distance: {
small: 8,
},
fontSize: {
},
width: {
},
fonts: {
}
};

The footer component

Writing the envelope

Time to create the actual content

Wiring it all up

Where do we stand

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store