Send email with data from Airtable in Node.js through SMTP using nodemailer.
See help.
node main.js -hInstall dependencies.
npm iSet the required envs.
export AIRTABLE_API_KEY=""
export AIRTABLE_BASE=""
export AIRTABLE_TABLE=""
export USERNAME=""
export PASSWORD=""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.
node main.js -d # test with dry runnode main.js -V # will show parsed optionsor
node main.js