Git Product home page Git Product logo

node-emails-from-csv's Introduction

node-emails-from-csv

This is a sample project demonstrating the usage of nodemailer, handlebars and node-csv packages to parse CSV files and use the data for sending emails. This is suitable for sending event registration confirmation emails e.t.c. We use it for NodeSchool Karachi already and I've put a sample in this repo.

How to use

  • Put your source file (CSV) under the 'files' folder
  • Put your SMTP credentials in the helpers/mailer.js
  • Add your template or use existing from the templates folder
  • Modify the index.js based on your event/email to send. It contains variables that would be replaced in the template placeholders.
  • Feel free to ask questions and raise issues.

node-emails-from-csv's People

Contributors

ahsanayaz avatar siraj1044 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-emails-from-csv's Issues

Adding Tests

Adding tests for the following features:

  1. Positive case of parsing the CSV & sending all emails via nodeMailer
  2. Generating an error CSV successfully

Output a CSV with the failed emails.

Having a failure CSV would be great I guess. We can perhaps then write a script for resending to the failed ones. Then automating it eventually.
But for now, writing the failures in output is the task.

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.