Skip to content

urbeETH/email-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URBE Mails

This repository is designed to send emails using SendGrid based on a list of email addresses provided in a CSV file. The email content is generated from an HTML template.

Prerequisites

  • Node.js installed on your machine
  • A SendGrid account and API key

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/urbe-mails.git
    cd urbe-mails
  2. Install the dependencies:

    npm install
  3. Create a .env file in the root directory of the project and add your SendGrid API key:

    SENDGRID_API_KEY=your_sendgrid_api_key
  4. Prepare your emails.csv file in the root directory. The CSV file should have the following structure:

  5. Prepare your template.html file in the root directory. This file will be used as the HTML template for the emails.

Usage

To send the emails, run the following command:

npm run start

or

node index.js

About

Simple script to send emails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published