dominiquemb / sendgrid-webflow-mailer

Send automated emails using data from Webflow and contacts from Sendgrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a node script which fetches data from Webflow items, and applies the data to a Sendgrid email template, sending out emails to a Sendgrid subscribers list.

Specifically, it fetches a list of skills and gigs from Webflow collections, and a list of subscribers from a Sendgrid contact list. It matches the subscribers' skillset to Webflow gigs, and then sends the subscriber an email with a list of all gigs that match their skills.

You can easily download this repository and test it out yourself with the following commands:

1. git clone https://github.com/dominiquemb/sendgrid-webflow-mailer.git
2. cd sendgrid-webflow-mailer
3. sudo npm install
4. node app.js dummy youremail@youremail.com

You must use a valid email in order for the test to work properly!

The email content, sender info and recipient info is defined in this file:

data/mailerData.js

The API keys are defined here:

api/api.js

And finally, the dummy data (for testing) is defined here:

data/dummyData.js

After you have entered your API keys, formatted your data according to the example in data/dummyData.js, and entered your sender/recipient info in the files listed above, you can run the following to send out mass emails to your Sendgrid contacts.

node app.js

If something doesn't work, send me an email at conejoplata@gmail.com.

About

Send automated emails using data from Webflow and contacts from Sendgrid


Languages

Language:JavaScript 100.0%