GithubHelp home page GithubHelp logo

akhoury / mandrill-blast Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 170 KB

blast a list of emails in a CSV file with dynamic template data via Mandrill API

License: MIT License

JavaScript 100.00%

mandrill-blast's Introduction

mandrill-blast

quick and dirty way to blast a CSV list of emails with template data using Node and the Mandrill API

If you're looking to blast emails NOW!

use http://akhoury.github.io/pages/mandrill-blast/

Install

You need to have NodeJS installed and running, then

npm install mandrill-blast

OR

git clone https://github.com/akhoury/mandrill-blast.git

Usage

cd mandrill-blast
node blast.js --source="sample.emails.csv" --key="0123456789" --template="sample.template.html" --from-email="[email protected]" --from-name="Your Name" --to-email-column="email" --subject="Hi {{name}}" --to-name-column="name"

CSV

MUST have headers for each column, at the top

id,email,name,friend,location,token
1,[email protected],gooby,derp,fakeville,123456789
2,[email protected],goobette,derpina,fakecity,987654321

Templates

uses Handlerbars format for templating, it's pretty simple see sample.template.html for an example.

Mandrill API

You need an account and a valid API Key, get one at mandrill.com

Todo

  • make it a reusable module
  • anything that the heart desires, I needed this as a 10 minutes hack and it got the job done, if you have ideas or needs, submit a pull or feature request.

mandrill-blast's People

Contributors

akhoury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.