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
3
votes
3 answers

Receive authentication response data from a non-Google service via a Gmail add-on

I'm building a Gmail add-on with 2 steps: Authorization with Gmail account. Authenticate to access my service. Example: The same as Trello add-on: When I click the button to login, a login form appears like this: I want to receive data response…
phambaonam
  • 45
  • 2
  • 8
3
votes
1 answer

Test automation Google Apps Script Gmail Add-ons

I am working on Gmail Add-on using Google Apps Script. I am using Clasp to develop it on locally then using this I am pushing it to script.google.com. In local, I can do Unit testing using any JavaScript testing framework. But is there any way to…
3
votes
2 answers

How to run a React app as a Gmail Addon?

I'm trying to build a Gmail Addon using React. The problem is, we have to write Gmail Addons using google Apps Script. The reason I chose React is I already built a plugin for outlook using React. If I can use the same for Gmail then I can port the…
THpubs
  • 7,804
  • 16
  • 68
  • 143
2
votes
1 answer

Building a card and updating it after fetching data in Google Apps Script

I am trying to build a Gmail addon which includes 2 external API calls. The first one is fast (~200ms) and the second one is slow (~5s). Because of this I would like to first build the card with the results of the first fetch, and then update the…
Abel Riboulot
  • 158
  • 1
  • 8
2
votes
0 answers

Refresh Gmail add-on from promise response

I'm trying to refresh a Gmail add-on from a promise result and I can't find the right way to do it. Is it possible, right? What I'm doing is: function loadAddOn(event) { ... retrieveRecipientsInformationFromAPI(emails) ... ... …
Pataquer
  • 283
  • 1
  • 14
2
votes
1 answer

Published Gmail Add-On Not Showing on Mobile Gmail App

On the Google Developers page here, it says "G Suite add-ons that extend Gmail do so on both desktop and mobile clients." My published add-on linked here is on the Marketplace. It is just extending gmail (I've included my manifest file below).…
2
votes
3 answers

Add sections dynamically to card

I'm new on Apps Script and I'm a bit lost, is there a way to add dynamically a section on a card? I'm trying this: var card = CardService.newCardBuilder() .setHeader(peekHeader) .addSection(section).build(); …
Pataquer
  • 283
  • 1
  • 14
2
votes
0 answers

Gmail - Schedule send

I wish gmail gave more Schedule send times by default - not just default Tomorrow morning Mar 24, 8:00 AM Tomorrow afternoon Mar 24, 1:00 PM Monday morning Mar 30, 8:00 AM I'd love to have options like in 2 minutes in 10 minutes in 1 hour in 2…
2
votes
0 answers

InboxSDK get all attachments in a thread

Is there any way to get the title of all attachments in an email thread with InboxSDK? I see there is a method getTitle under AttachmentCardView but if the message itself is not loaded, the attachment card view does not show up. I have tried using…
rma
  • 1,853
  • 1
  • 22
  • 42
2
votes
2 answers

Gmail Add-on pass parameters to function triggered by card action

I'm building a Gmail add-on that creates a card with just one form button. Once clicked, I want the button to trigger a function that will send the open email's content to an external API. So far, I have something like this: function…
uckc
  • 21
  • 3
2
votes
1 answer

Attached EML files in emails sent via GMAIL-APIs are not viewable in GMAIL

I am currently developing a gmail addon. The addon sends an email, with an attached eml file, to a particular recipient. Unfortunately, the recipient is not able to open the eml file attached with the email I sent via GMAIL API. If they click on the…
GovZ
  • 253
  • 1
  • 11
2
votes
1 answer

Gmail AppScript mailMessage.getFrom() to return email not name

Similar to: Getting only email address to display when using message.getFrom() in JavaMail but could not apply the solution. Trying to use mailMessage.getFrom() on Google AppScript with Gmail. Default script: function loadAddOn(event) { var…
neydroydrec
  • 6,973
  • 9
  • 57
  • 89
2
votes
0 answers

Convert chrome extension to chrome addon

I have a gmail extension. Now i want to also have a gmail addon for that. Is there a way I can convert my gmail extension to a gmail addon. Is there a guide for that. Please guide me.
AMBasra
  • 969
  • 8
  • 24
2
votes
1 answer

How to make Card Header Title bold in Gmail Add-on?

How to make Card Header Title bold in Gmail Add-on? I tried this, but it doesn`t work: function mainCardBuild(content) { return CardService.newCardBuilder() .setHeader( CardService.newCardHeader().setTitle(' MY TITLE…
2
votes
1 answer

Trying to use GmailApp.sendEmail - Getting Missing access token for authorization

I'm trying to use the GmailApp.sendEmail() within an Add-on I'm currently working on, and even though I've given it the necessary scopes, it's still failing to send the message with: "Access denied: : Missing access token for authorization.…