Google Gmail Extension

Overview

Google Gmail Extension

Extension Name: Google Gmail
Description: A Non-Visible component that helps you to send mail from your App Inventor App using Google App Script.
Requirements: Google Account, App Script deployment key

Blocks

Error Occurred

component_event(1)|616x170, 50%

Description: Event raised when the error occurred from network connectivity.
Params: errorMessage(String message generated when the error occurred.)

Mail Send

component_event(2)|546x170, 50%

Description: Event raised when code execution completed from Google App Script, if mail not sent then also this event raised with appropriate status and message.
Params: status("ok" if mail sent successfully), message("mail sent successfully" if mail sent successfully else error message)

Send Mail

component_method(1)|532x208, 50%

Description: Call App Script function to send message to given mailId with given subject and body.
Params: mailId(Email Address of the recipients), subject(Subject of the mail), body(Body text of the mail).

Deployment Key

component_set_get|690x52, 50%

component_set_get(1)|596x52, 50%

Description: Set your App Script deployment key.

Google App Script

function doPost(request)  {
  let emailId = request.parameters.mail_Id;
  let emailBody = request.parameters.body;
  let emailSub = request.parameters.sub;
  const output = {};
  try {
    GmailApp.sendEmail(emailId, emailSub, emailBody);
    output['status'] = 'ok';
    output['msg'] = 'mail sent successfully';
  } catch (err) {
    output['status'] = 'error';
    output['msg'] = err;
  }
  return ContentService.createTextOutput(JSON.stringify(output)).setMimeType(ContentService.MimeType.JSON);
}

Notes

  1. At the deployment time it may ask you to grant permission to access the data related to Gmail.
  2. Don't share your deployment key with others(Even me also).
  3. Deployment Configurations (Execute as: Me (Your Mail Id), Who has access: Anyone)

Download Link

com.google.preet.aix (10.8 KB)


Happy App Inventing
Preet P. Vadaliya

You might also like...

Quarkus extension for launching an in-process Wiremock server

Quarkus extension for launching an in-process Wiremock server

Quarkus extension for running Wiremock in DEVELOPMENT mode This extension is currently not published in any maven repository. If you want to test this

Dec 30, 2022

Publish commands to shopping cart Google pub/sub topic.

shopping-cart-pub-java-akka-serverless This project is an Akka Serverless service that is used to publish shopping cart commands to a Google pub/sub t

Nov 17, 2021

CobaltStrike and Google Auth twice

CobaltStrike and Google Auth twice

GoogleAuth 基于cobaltStrike的谷歌二次验证 语言:Java 目的:实现在多人联合中的安全验证 原文:https://my.oschina.net/u/4587690/blog/5161930 开发原因:很简单,原文没有源代码。也没有jar包,不能“拿来吧你”。所以就自己写算了。

Dec 20, 2022

Sceneform React Native AR Component using ARCore and Google Filament as 3D engine. This the Sceneform Maintained Component for React Native

Sceneform React Native AR Component using ARCore and Google Filament as 3D engine. This the Sceneform Maintained Component for React Native

Discord Server Join us on Discord if you need a hand or just want to talk about Sceneform and AR. Features Remote and local assets Augmented Faces Clo

Dec 17, 2022

Share food-Android- - Food donation coded in native android with firebase, google maps api and php server xampp

Share food-Android- - Food donation coded in native android with firebase, google maps api and php server xampp

share_food-Android- Instructions: 1. Create a firebase account and link it with the project via google-services.json. 2. This project also uses a XAMP

Dec 28, 2021

Google App Engine Standard Environment Source Code for Java 8 and Java11

 Google App Engine Standard Environment Source Code for Java 8 and Java11

Google App Engine Standard Environment Source Code for Java 8 and Java11. This is a repository that contains the Java Source Code for Google App Engin

Jan 2, 2023

An app that mixes emojis using Google Emoji Kitchen API.

An app that mixes emojis using Google Emoji Kitchen API.

EmojiMixer An app that mixes emojis using Google Emoji Kitchen API mainly inspired from emojimix. The project is just broken since I'm not active anym

Aug 24, 2022

Some recent questions asked in interviews of companies like Google, TCS, Amazon etc.

Some recent questions asked in interviews of companies like Google, TCS, Amazon etc.

Nov 21, 2022

Hate, hate, hate, for Google and its crashtastic Pixel 6 Pro.

OpenCamera hack for Pixel 6 Pro The Pixel 6 Pro is an expensive phone. There seem to be a significant number of people whose P6Ps crash -- hard -- try

Nov 11, 2022
Owner
Preet P. Vadaliya
External Collaborator, Opensource Developer, GSoC-'21 Student at @mit-cml
Preet P. Vadaliya
This extension identifies hidden, unlinked parameters. It's particularly useful for finding web cache poisoning vulnerabilities.

param-miner This extension identifies hidden, unlinked parameters. It's particularly useful for finding web cache poisoning vulnerabilities. It combin

Intruder 9 Jan 27, 2022
Community extension to generate a Java client from the provided Camunda 7 OpenAPI descitpion and also warp it into Spring Boot

Camunda Engine OpenAPI REST Client Java and Spring Boot This community extension is a convenience wrapper around the generated Java client from the Ca

Camunda Community Hub 29 Dec 28, 2022
An extension for Keycloak, that enables web-based sign in with Apple and token exchange

Apple Identity Provider for Keycloak ?? This repository represents an extension for Keycloak, which enables Sign in with Apple for web-based applicati

Klaus Betz 58 Dec 29, 2022
A simple live streaming mobile app with cool functionalities and time extension, and live chat. With a payment system integrated. Server is designed with socket.io to give you full flexibility.

Video Live Streaming Platform Android A simple live streaming mobile app with cool functionalities and time extension, and live chat. With a payment s

Dev-Geek 2 Dec 16, 2022
An extension that wraps a Cellpose environment such that WSI can be analyzed using Cellpose through QuPath.

QuPath Cellpose extension This repo adds some support to use 2D Cellpose within QuPath through a Python virtual environment. Installing Step 1: Instal

BioImaging And Optics Platform (BIOP) 16 Nov 25, 2022
GalaxyGlue is an extension to MySQL Connector/J 8.0.

中文文档 What is ApsaraDB GalaxyGlue ? GalaxyGlue is an extension to MySQL Connector/J 8.0. GalaxyGlue uses asynchronous requests, session and connection

null 32 Dec 19, 2022
A Maven extension for validating and collecting checksums of all artifacts during execution.

Maven checksum extension This extension allows for the creation and the enforcement of checksums for any artifact that is resolved by Maven. Without s

Rafael Winterhalter 12 Aug 6, 2022
SecureDB is an extension for Ai2 Appinventor and its distros which stores the data in the form of key and value just like TinyDB but in a more secure manner.

SecureDB SecureDB is an extension for Ai2 Appinventor and its distros which stores data for your app in a secure format locally on user's device. Expl

Akshat Developer 3 Sep 24, 2022
Lattice is a powerful, lightweight business extension invoke framework. By using the Lattice framework, complex business customization can be efficiently organized and managed.

Lattice Framework Introduction Lattice is a powerful, lightweight business extension invoke framework. By using the Lattice framework, complex busines

null 41 Dec 30, 2022
JDA Commands is an extension for JDA to make commands easier and clearer to develop.

JDA Commands JDA Commands is an extension for JDA to make commands easier and clearer to develop. With the API you can easily create commands for the

Dominik 12 Oct 14, 2022