Skip to content

Uses nodemailer and a google sheets document to send out mass emails

Notifications You must be signed in to change notification settings

tsonthalia/EmailBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EmailBot

Uses nodemailer and a google sheets document to send out mass emails

Setup

Convert google email settings to allow less secure access. Can be found here.

Update the auth object so that user has your email address and pass has your password. For example...

const auth = {
  user: 'hello@gmail.com',
  pass: 'hello123',
}

Publish document to web. For full steps follow these instructions.
Get the sheet id which can be found between the '/d/' and the next '/' in the url of the google sheets document. Set the sheetID variable to this id. For example...

const options = {
  sheetId: '1-CmQumuz5ZiOvINhphEMgfplrJacQhD623RROcOBTAg',
  sheetNumber: 1,
  returnAllResults: true,
}

Change mailOptions.html to set your email text.
Run npm install in the terminal in the project directory.

Run

In the terminal, run node index.js.

About

Uses nodemailer and a google sheets document to send out mass emails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published