@simble/email-signature-generator-cli
v1.0.0
Published
Generate Emails and distribute via email
Downloads
3
Readme
Email Signature Generator
A tool to reate email signatures from a provided template and CSV file with userdata. Also distributes to users via email. Written using ES7 Async/Await.
Installation
npm i -g @simble/email-signature-generator
Usage
CLI
signature-generator
Help
signature-generator -h
Programatic
yarn add @simble/email-signature-generator
const signatureGenerator = require('@simble/email-signature-generator');
// These are the CLI defaults
const options = {
sendEmail: false,
output: './output',
templates: './input/templates',
instructions: './input/instructions.md',
userData: './input/user-data.csv',
mail: {
MAIL_PROVIDER: 'mailgun',
MG_KEY: process.env.MG_KEY,
MG_DOMAIN: process.env.MG_DOMAIN,
MG_ADDR_FROM: process.env.MG_ADDR_FROM,
},
};
signatureGenerator(options)
.then( () => console.log('Success'))
.catch( error => console.error(error));
Email Provider
Currently supports Mailgun.
Development
Install
yarn
Tests
yarn test