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

Rogier Slag
Sep 1, 2017 · 5 min read

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

Rogier Slag

Written by

Software Engineer. Lead software engineer @ Magnet.me, CTO @ inventid.nl. General nerd. github.com/rogierslag

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade