0.1.0 • Published 4 years ago
generator-email-template v0.1.0
📮 Email Template
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.
Name | Link |
---|---|
nodejs | https://nodejs.org/en/download/ |
yeoman | npm i -g yo |
gulp | npm 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