GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - petergsd/Google-Script-API: Gmail and Google Script API example

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
js
js
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 

Repository files navigation

Google-Script-API

This is one example that use Google Apps Script implemented as executable API to send emails through Gmail API.

Send emails with Google Script API is much easier than a classic method.

####How to: To use it, simply:

  • Create a project on Google Developers Console enabling the Gmail and Google Script Execution API. Then extract the client ID and paste it on:
var CLIENT_ID = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
  • Create a Google Script file on Google Apps Script. The Google Script code used is:
function myFunction(email, subject, text) {  
    GmailApp.sendEmail(email, subject, text);
    return ['Email sent'];  
}
  • Then, implement it as a executable API, extract the script ID and paste it on:
var scriptId = "XXXXXXXXXXXXXXXXXXXXXXXXXXXX";

####Run To run, use your favorite server or simply type:

python -m SimpleHTTPServer

All rights reserved to Google.

Sorry if my English had mistakes, isn't my first language.

About

Gmail and Google Script API example

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.