All Questions
Tagged with google-apps-script gmail-api
425 questions
3
votes
1
answer
135
views
Receiving error with GmailApp.SendEmail all of a sudden
I have an Appscript program that I've used for a long time. It sends me an email with an attachment. The attachment is a Google sheet that has been exported to an xlsx format.
All of a sudden, I'm ...
0
votes
0
answers
42
views
Correct 'from' field for sequential email sending in a thread using GmailApp
I work on problem sending main email and few reminders (not spam) after some time into same email address and thread.
I use google app scripts and it has built-in GmailApp. So this is my messaging ...
0
votes
1
answer
76
views
Google Apps Scripts Update Subject, Content , CC , BCC etc
I am trying to implement a Google Apps Script function that will help me update the subject, content, cc, bcc, etc., of an email. However, I have encountered an issue where, despite having written the ...
-1
votes
1
answer
108
views
DriveApp and GmailApp Services not working simultaneously in Google Apps Script
I'm encountering an issue with Google Apps Script when trying to use DriveApp and GmailApp together. Here's the situation:
When I call DriveApp alone, it accesses folders without any
issues.
...
0
votes
0
answers
115
views
Message ID from Google Apps Script is different from ID from Gmail API
I am trying to build a Google Workspace Add-on card that pulls some information from a sheet and adds it to a Gmail card.
On the sheet, I have a list of emails with their Message ID pulled from the ...
0
votes
1
answer
110
views
Unable to Retrieve and Read .eml Attachments in Gmail Using Google Apps Script
I am facing an issue while using Google Apps Script to automate the retrieval of .eml file attachments from specific emails in my Gmail inbox. My script is designed to search for emails with a ...
1
vote
1
answer
99
views
Formatting Specific Portions of a Gmail Email Created with Apps Script
I'm trying to find a way to create emails using Google Apps Script and format specific words or phrases (not the whole body) in the email body. I want to automate creating some emails that have ...
0
votes
2
answers
50
views
Google apps script forwarding pdf's sorted by label sends emails to two labels at the same time
I run a company that gets a lot of invoices. There are a couple of email adresses that these invoices are sent to. All email addresses lead to one Gmail inbox. The emails are then tagged based on the ...
0
votes
0
answers
15
views
Google Apps Script error: "GoogleJsonResponseException: API call to drive.files.insert failed with error: Bad Request" [duplicate]
I'm trying to trigger a Google Apps Script to copy an attached xlsx file from a Gmail email to a Google Sheet, but I'm getting the following error:
GoogleJsonResponseException: API call to drive.files....
0
votes
0
answers
46
views
Google Workspace Account throwing error "Service invoked too many times..." after only 20-30 emails [duplicate]
Updating by providing actual code and more details around my issue.
I have a Google Workspace Account that I believe should allow me to send up 1,500 emails per day. I'm running a GAS that calls the ...
0
votes
0
answers
175
views
Google Script Error - "The state token is invalid or has expired. Please try again."
I've been struggling with an OAuth2 authorization error in my Google Apps Script for a couple of weeks. I'm trying to allow multiple Google accounts to authorize the script, but I keep encountering a &...
0
votes
1
answer
64
views
Google script to Pull Data Range of Emails into Gsheet
I have frankensteined this code a little, and it gets me 95% of what I want, but I can't figure out how to have it pull just a specific date range. Right now it grabs the whole inbox, and I don't need ...
0
votes
1
answer
72
views
Error: Service Invoked too many times (Email Send)
I have a script that gets the specific draft from Gmail to send the email. It sent 10-15 emails and then started throwing error:
Service invoked too many times for one day: email.
Here is the code ...
0
votes
0
answers
47
views
in gmail compose, loading of new signature updated via gmail app or appscript addon does not work unless gmail page is refreshed
The requirement is to use a dynamic signature as soon as Gmail default compose button is clicked.
Option 1:
Tried with below to set the signature. It does so, but then unless I reload the Gmail page, ...
0
votes
0
answers
56
views
Replies to an email sent via the Gmail API from the UI don't show up when listing messages of the thread when calling users.threads.get
Scenario:
I have two accounts for this: Account A and Account B.
I have sent an email to Account B from Account A. Account A and Account B are in different Google Workspace domains. I used the Gmail ...