Skip to content

Send batch emails from the command line with Mailgun!

Notifications You must be signed in to change notification settings

AnalyzePlatypus/mailgunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailgunner

Send batch emails from the command line, powered by Mailgun batches.

Installation

Just clone the repo.

Usage

Setup

  • Create and configure .env.json with your Mailgun API key (Copy .example.env.json and customize)
  • Create a data directory in project root

On every run:

  1. In ./data, add:
  • A CSV file emails.csv containing the columns firstName, lastName, email
  • Plaintext email: template.txt
  • HTML email: template.html
  1. npm run send

All emails will be sent!

💡 You can test without sending real email by engaging Mailgun test mode: Set the env var MAILGUN_ENABLE_TEST_MODE to true

📝 I recommend the phenomenal MJML.app for designing and creating HTML emails.

About

Send batch emails from the command line with Mailgun!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published