Skip to content

Send emails with data from Airtable in Node.js through SMTP using nodemailer.

License

Notifications You must be signed in to change notification settings

ThewApp/airtable-smtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airtable SMTP

Send email with data from Airtable in Node.js through SMTP using nodemailer.

Usage

See help.

node main.js -h

Setup

Install dependencies.

npm i

Set the required envs.

export AIRTABLE_API_KEY=""
export AIRTABLE_BASE=""
export AIRTABLE_TABLE=""
export USERNAME=""
export PASSWORD=""

Airtable

Airtable must have the following columns/fields. See nodemailer docs for description. It can be configured through parameters --field*.

  • from
  • to
  • subject
  • html
  • text
  • attachments
  • messageId - for storing the final SMTP messageId only, it will not be read.

Test

node main.js -d # test with dry run

Run

node main.js -V # will show parsed options

or

node main.js

Thank you!

Buy Me A Coffee

About

Send emails with data from Airtable in Node.js through SMTP using nodemailer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published