Skip to content

A simple script to fetch gmail emails and send them to an external server using Google Apps Script

License

Notifications You must be signed in to change notification settings

NinjasCL/gmail-app-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmail Google Apps Script

Ninjas.cl MIT

🚀 Environment setup

Requirements

Installation

  1. Create a new project in Google Apps Script.

  2. Upload the code inside action.gs.js.

  3. Enable Advanced Services.

  4. Configure token, label and endpoint constants.

  5. Ensure that some emails have the label and are unread.

  6. Save and run (Need to give permissions first).

Example server

And example server made with Fastify was made to demostrate usage. Ensure to configurate the project’s tokens and endpoints.

Use make install and make serve to run.

🤔 Project explanation

This is an small proof of concept. A simple gmail script that will fetch unread emails with a specific label. Then sent them to an specific server endpoint where you can process them further or save them to a database or another place.

Made with by Ninjas.cl.

About

A simple script to fetch gmail emails and send them to an external server using Google Apps Script

Topics

Resources

License

Stars

Watchers

Forks