DEV Community

Cover image for Introducing stencil.email
Valentin Radu
Valentin Radu

Posted on

Introducing stencil.email

stencil.email provides a set of 4 HTML email templates that can be quickly used in just a couple of lines of code.

All templates are:
βœ… Responsive
βœ… Customizable (colors, text, icons)
βœ… Tested on all major email clients
βœ… Ready for production

I built this because many times I just wanted to send a simple, but good looking, transactional email without having to pollute my workspace with .html files or rely on hosted third parties.

This is all you need:

const Stencil = require('@radval/stencil')


const stencil = new Stencil('transactional')
const html = stencil.render({
    heading: 'Welcome, Jane! πŸŽ‰',
    message: 'We’ve heard you like emails!',
})
Enter fullscreen mode Exit fullscreen mode

Check out the repo for examples and the list of customizable features.

Hope it helps someone out there!

Top comments (0)