Questions tagged [gmail-addons]

Questions related to Gmail Add-ons, the modern developer platform that allows custom sidebars and buttons to be added to the Gmail user interface.

A Gmail Add-on is a standalone Google Apps Script project. Its purpose is to improve productivity and help the user perform an action directly from the Gmail page without leaving it.

The language used, Google Apps Script, is a server-side scripting language based on JavaScript 1.6. All add-ons use a "card"-style UI, to enable a common appearance on all platforms.

387 questions
1
vote
1 answer

How to reload gmail add-on through background process using app-script

May i get some help on the below points where i am using app-script to develop a gmail add-on: How can we refresh gmail add-on with back ground process? => Here is my case, I need to display card with multiple sections which is the process of…
1
vote
0 answers

How can I share configurations among all users in a domain-wide installed GMAIL/GSuite Addon?

I have been studying GMAIL Addon development lately. I would like admins, subscribing to my GMAIL addon, to be able to upload a configuration file in their domain which my addon can consume later when they are installed by the users under the same…
GovZ
  • 253
  • 1
  • 11
1
vote
0 answers

how can install my app which is in development mode to another user of same domain?

I have developed a gmail addon and wanted to test the unpublished addon in another user of same domain. I created a new version deployment and tried installing. With that id i tried installing in other account but getting this error Invalid…
vinay narayana
  • 197
  • 1
  • 2
  • 10
1
vote
1 answer

How to access Gmail messages selected (checkbox)

I am trying to build an Add-On for gmail which will perform some actions on a set of messages selected by the user. Looking at the gmail Apps Script API, I cannot see a method that allows me to do that. I've noticed that some AddOns operate on…
1
vote
0 answers

GmailApp (Google Apps Script) Displays Inline Images as Attachments

Hello friendly StackOverflow folks, I am having the most difficult time getting the GmailApp sendEmail() method to successfully use an existing email (e.g. a draft) that contains images inline as a template for new messages. It seems like this is a…
1
vote
1 answer

How can i trigger a function in JS file from gmail addon button?

I have js library which has some inbuilt functionalities required for our application. Now i want to import my js library and its css files in Gmail addon. After that i want bind a function to that button id so that whenever the button is clicked…
1
vote
0 answers

Apps Script login form inside gmail

I want to create a plugin for Gmail using the Apps Script. One of the requirements is that I need to login to a 3rd party website which doesn't have Oauth, so I just need a form with 2 fields: username and password and then do an ajax request. This…
1
vote
0 answers

GmailApp getMessages() needs an access token

I'm struggling to get getMessages() to work. All I want to do is get the first message from the first thread. var threads = GmailApp.getInboxThreads(0,1)[0].getMessages()[0]; But all I ever get is the 'Access denied: : Missing access token for…
1
vote
0 answers

How to authenticate in Gmail AddOn

We are looking at building a gmail add-on for our application. Our application uses custom authentication (different from gmail or google Oauth). There are few questions: Is it possible to launch a single page application(eg. angularJS application)…
1
vote
1 answer

Composing a draft email from my gmail addon

I'm using the example here to guide me as I write code to compose a standalone draft email using user input values from my gmail addon. Here's the button widget that should create the draft: var submitButton = CardService.newTextButton() …
ack_inc
  • 1,015
  • 7
  • 13
1
vote
1 answer

Creating a select (dropdown) input with a dynamic list of options in a gmail addon

The Google App Script SelectionInput docs show selection inputs with a static list of options. Trying to create a dynamic options list like below: var items = [...]; var selectWidget = CardService.newSelectionInput() …
ack_inc
  • 1,015
  • 7
  • 13
1
vote
1 answer

How to retrieve email addresses from gmail addon

I'm new to Gmail add-ons. Could you please help me how to retrieve current email from address, to address and cc addresses? GmailApp.getMessageById(messageId).getTo() GmailApp.getMessageById(messageId).getFrom() is displaying names but not giving…
Mahesh
  • 11
  • 1
1
vote
0 answers

Is there any way to show gmail editable html message content in gmail add-ons card?

I am developing gmail add-ons, the idea is that a user opens an email, clicks the addon button and will be prompted with a question if they want to forward this email. When the user confirms, the email is forwarded with headers and everything to a…
Ali Hassan
  • 11
  • 3
1
vote
2 answers

How do I use the drive.file auth scope in my Gmail addon?

I'm trying to be a good Google Apps Scripter and use less permissive scopes in my app, but I can't get it to work with https://www.googleapis.com/auth/drive.file. I have a Gmail addon that needs to create files and folders in the user's Google…
1
vote
1 answer

In Google Apps Script action handler, how to get value of a selection input?

Documentation shows examples of creating a SelectionInput item: https://developers.google.com/apps-script/reference/card-service/selection-input Question: How to read value of SelectionInput in an action handler? Like: var dropdown =…
Marcin
  • 4,080
  • 1
  • 27
  • 54