Skip to content

SimonBrazell/dear-senator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DearSenator.js

A tool to help contact senators, members of parliament and other decision makers, driving change and action.

Usage

  1. Download the appropriate executable for your OS (Windows, Linux, or MacOS), or build it yourself.
  2. Create the files recipients.csv and template.txt, populating as required, locating them in the same folder as the executable.
  3. Run the executable.
  4. A new email should be created for each of the recipients.

Note

The tool assumes you have an email client setup to respond to mailto links.

The recipients.csv must contain the email and subject columns for the executable to work, everything else is up to you, just make sure you reference your custom columns in template.txt using the same column title included in recipients.csv, e.g. col_name in your recipients file will be <%= col_name %> in your template file.

The template.txt file uses EJS, insert your variable from the recipients.csv in between <%= ... %> tags to have them properly displayed in the output email.

See the examples in dist/

Build

  1. npm install
  2. npm run build
  3. See dist/ for outputs.

About

A tool to help contact senators, members of parliament and other decision makers, driving change and action.

Resources

License

Stars

Watchers

Forks

Packages

No packages published