0.1.0 • Published 4 years ago

generator-email-template v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

📮 Email Template

built with gulp

This is a workflow for building HTML emails using Gulp, scaffolded with Yeoman.

Features

  • Builds HTML email from Nunjuck templates and partials
  • Compiles SCSS to CSS
  • Inlines the inline.css file and embeds the internal.css file
  • Generates a preview in your browser
  • Send test emails via Nodemailer

Requirements

You may already have these installed on your system. If not, you'll have to install them.

NameLink
nodejshttps://nodejs.org/en/download/
yeomannpm i -g yo
gulpnpm i -g gulp-cli

Installation

Open up command prompt or powershell and copy & paste the commands bellow:

$ npm i -g generator-email-template
$ yo email-template

Nodemailer

Update nodemailer.config.js with your email credentials and default mail options.

Set up Nodemailer with Gmail, see instructions here.

Usage

gulp build builds production ready files in dist folder.

gulp develop starts a local webserver on http://localhost:8080

gulp test send a test email using your default configuration in nodemailer.config.js

0.1.0

4 years ago