o68x / glitch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Integration: Notion to Email

About the Integration

This Notion integration sends an email whenever the Status of a page in a database is updated. This sample was built using this database template and emails are sent using SendGrid's API.

Running Locally

1. Setup your local project

Remix this Glitch example project

2. Set your enviornment variables in a .env file

NOTION_KEY= <your-notion-api-key>
SENDGRID_KEY=<your-sendgrid-api-key>
NOTION_DATABASE_ID=<your-notion-database-id>
EMAIL_TO_FIELD=<email-receipients> 
EMAIL_FROM_FIELD=<email-from-field>

You can create your Notion API key here.

You can create your SendGrid API key here.

To create a Notion database that will work with this example, duplicate this template.

3. Run code

node index.js

About


Languages

Language:JavaScript 100.0%