/node-emails-from-csv

A simple NodeJS aplication that helps sending emails for events. Uses CSV files for target users.

Primary LanguageHTMLMIT LicenseMIT

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.