Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mandrill-mail-merge

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mandrill-mail-merge

Send a mail merge using your Mandrill account

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

mandrill-mail-merge

Send a mail merge using your Mandrill account

Version CircleCI Appveyor CI Codecov Downloads/week License

Usage

$ npm install -g mandrill-mail-merge
$ mmerge COMMAND
running command...
$ mmerge (-v|--version|version)
mandrill-mail-merge/0.2.3 darwin-x64 node-v8.10.0
$ mmerge --help [COMMAND]
USAGE
  $ mmerge COMMAND
...

Commands

mmerge generate

generate a new mail merge template in the current working directory

USAGE
  $ mmerge generate

OPTIONS
  -f, --fileName=fileName  [default: template.js] the output filename
  -h, --help               show CLI help

See code: src/commands/generate.ts

mmerge help [COMMAND]

display help for mmerge

USAGE
  $ mmerge help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

mmerge run

run a mail merge

USAGE
  $ mmerge run

OPTIONS
  -d, --dataFile=dataFile          path to CSV file with merge data
  -h, --help                       show CLI help
  -l, --live                       use the live API key
  -n, --numRows=numRows            [default: 3] number of test emails to preview/send (ignored in live mode)
  -p, --preview                    print a randomly-selected test email to STDOUT
  -t, --templateFile=templateFile  path to .js file that exports a render(row) function

DESCRIPTION

     Input files:
     ==============

     Mail merge requires a CSV of merge data, and a matching Javascript template file that exports the following keys:
       {
         // -- the sender's email address
         fromEmail: string,

         // -- the sender's name
         fromName: string,

         // -- function returning the recipient's email address
         to: (row) => string,

         // -- [optional] function returning the recipient's name
         to: (row) => string,

         // -- the email subject. A string, or a function that takes a CSV row and returns a string
         subject: string | (row) => string,

         // -- function that renders the email body from a CSV row
         message: (row) => string
       }

      Note that CSV column headers will be converted to camelCase

See code: src/commands/run.ts

mmerge setconfig

add or remove Mandrill credentials

USAGE
  $ mmerge setconfig

OPTIONS
  -h, --help  show CLI help

See code: src/commands/setconfig.ts

Keywords

FAQs

Package last updated on 20 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc