Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

Python Gmail API script not saving attachments — CSV shows filename but files are never downloaded

I’m building a Python script using the Gmail API to read model application emails, extract data, and download photo attachments. Everything works except the attachments. the script keeps saying: ...
Tess's user avatar
  • 9
1 vote
0 answers
32 views

"permission denied" error in Cloud Function that imports gmail

I'm stuck getting a "permission denied" error when using the gmail googleapi in a firebase cloud function to "import" syntetic emails to a workspace email box. I've followed this ...
phosph's user avatar
  • 31
0 votes
0 answers
94 views

Gmail API OAuth token expires after a few days, and re-authentication fails for some accounts

I’ve built an app similar to gmass.co/inbox I'm using gmail.readonly to help check where our emails land (Inbox, Promotions, Spam, etc.) in specific Gmail accounts before launching email campaigns. ...
Halim's user avatar
  • 1
0 votes
0 answers
49 views

Gmail API 403 "Delegation denied" error using Service Account DWD (Apps Script) despite Super Admin role

I am running a Google Apps Script to programmatically update Gmail signatures for users across my Google Workspace domain using a Service Account with Domain-Wide Delegation (DWD). Despite confirming ...
nano nano's user avatar
0 votes
0 answers
52 views

Gmail promotion - product carousel

I am developing Gmail Promotions for marketing purposes and have created several basic email templates designed to display a product carousel in the Promotions tab of Gmail inboxes. Following the ...
Amit Sharma's user avatar
  • 1,088
0 votes
1 answer
80 views

Gmail API draft creation: Subject with UTF-8 accents (é, è, …) shows as mojibake (“é”)

I’m creating Gmail drafts via the Gmail API from N8N. The draft works and is correctly attached to the threadId, but accented characters in the subject (like adhésion) are displayed incorrectly (adhé...
NeitoFR's user avatar
  • 825
0 votes
0 answers
36 views

Modify the signature label in gmail [duplicate]

I am developing a script that will update all the user signatures in our workspace. It works however the signature label is "My Signature" instead of the primary email e.g. [email protected]. ...
Carmad94's user avatar
3 votes
1 answer
125 views

Why does Gmail API override the Date header even with internalDateSource: 'dateHeader' and deleted: true in users.messages.insert?

I am working on a Python tool to migrate emails into Gmail while preserving the original Date header. My goal is simply to build a cli tool that allows to copy email from gmail account a to gmail ...
Pitto's user avatar
  • 8,699
0 votes
0 answers
65 views

Follow-up email using Gmail API appears as a new conversation even with threadId and In-Reply-To headers

I'm using the Gmail API in Node.js to send automated follow-up emails that should appear as part of an existing conversation thread. Here's what I'm doing: I retrieve the original thread using gmail....
Allyandaru's user avatar
0 votes
1 answer
137 views

Gmail API OAuth 2.0 Token Expiration – Post SMTP Connection Fails Intermittently

I'm using the Gmail API integration with the Post SMTP plugin on my WordPress site. The setup and initial configuration were smooth, and everything works perfectly after connecting. However, I'm ...
Aqib's user avatar
  • 1
0 votes
1 answer
64 views

Gmail Authorization popup not showing up

I'm a newbie, creating an android app that uses Google's CredentialManager API for auth. I also go on to request authorization for my Gmail Account (read only). I have attached my functions to request ...
Mohammed Faiz's user avatar
-1 votes
1 answer
106 views

Gmail API Send As Permissions

I've written some PowerShell that can send messages with an account's default address via the Google API. However, I'm not able to send messages as any of the "send as" addresses—Messenger ...
robocopgodzilla's user avatar
2 votes
0 answers
103 views

Gmail Pub/Sub Push Notifications Reach Cloud Run but Not My Python Webhook App

My objective is to develop Python scripts that read the current messages in the client's Gmail inbox, and read the live messages coming through the client's Gmail inbox. This data will eventually by ...
bradenlearnscode's user avatar
0 votes
1 answer
84 views

Send mails from alias using alias' SMTP in Google Script

I have a Google script that sends mails given some data in a Spreadsheet. The mail is sent with GmailApp using an alias set on Gmail settings. This alias is a PEC, the italian "certified mail ...
il_mix's user avatar
  • 603
0 votes
1 answer
126 views

Gmail API HTML message with UTF-8 character-set extended characters

Just converted my GCP cloud Java app to send email messages to Google Workspace via Gmail API rather than sendmail. In the past I was able to format HTML UTF-8 and send extended characters, but now it ...
jn4's user avatar
  • 53
0 votes
0 answers
38 views

Gmail API: Uploaded Emails Show Today's Date in GUI Instead of Original Date

I'm using the Gmail API to upload .mbx files into a Gmail account, but I’ve encountered an issue where the uploaded emails display today’s date (the date/time I execute the script) in the Gmail GUI ...
Barley10's user avatar
0 votes
1 answer
132 views

Java Google Mail API send "Precondition check failed" - 400 Bad Request for Service Account server-to-server no user

In response to Google's recent change to disallow username/password access to Google Workspace accounts from Google Cloud VM-instances, I am attempted to replace sendmail calls with Google API calls ...
jn4's user avatar
  • 53
0 votes
0 answers
43 views

How to open a specific react native app screen from a gmail link?

In my react-native app, I've implemented deep linking so I can access my reset password page from a gmail link sent after "forgot-password". The component is opening from adb command, but ...
georgio bou sleimen's user avatar
3 votes
1 answer
245 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 ...
Matt Sirkin's user avatar
0 votes
0 answers
85 views

having problem using gmail-api ,There something wrong with Gmail.buidler , i think i'm adding credentials wrong way

so this is my first project in spring boot (noob) , i wanted to created this gmail sending service, i got code from some repository but it's not working , i saw official documents , but they are ...
Lemon03's user avatar
6 votes
4 answers
488 views

Multiple different attachments using Gmail API in Django

How do I account for sending multiple (or no) attachments (via request.FILES) in Django using the Gmail API, so I can store the legacy message ID (ie "FBf…MiD") for future retrieval to reply ...
chris Frisina's user avatar
0 votes
0 answers
78 views

getting Module not found error for credentials.json when they are there (web app)

⨯ Error: Cannot find module '/Users/user/Desktop/contratos/credentials.json' when calling this function from the docs: async function authorize() { let client = await ...
user29972736's user avatar
-1 votes
1 answer
159 views

How do you successfully use Google's python quickstart API in a Colab environment?

This is kind of a follow up to this question I asked 2 years ago. I'm revisiting the work I've done in the past, and trying to get my old scripts to work (... again). And, I'm getting stuck (... again)...
Scott Borden's user avatar
-4 votes
1 answer
86 views

I want to use [email protected] while using the Gmail API

I am working on implementing the Gmail API, and I have created the email alias [email protected]. However, after implementing the feature to send emails to users from that address, I want to ...
user29966339's user avatar
0 votes
1 answer
197 views

How to setup Aurinko api for google email API

I recently watched a YouTube video where he built a SaaS project. The instructor built an email client SaaS project, and you have to set up an Aurinko account. I was following and building the same ...
Krishna Kamal's user avatar
0 votes
1 answer
71 views

Gmail API Not Sending Email Attachments with PDF in Django

I'm using the Gmail API to send emails with PDF attachments from my Django backend, but the attachment is not appearing in the email — only the email body is received. Here are the logs showing the ...
Aamir Qayyum's user avatar
0 votes
0 answers
52 views

Can't read mailbox with Gmail API - ACCESS_TOKEN_SCOPE_INSUFFICIENT

I have been messing around with the Gmail API lately and I haven't been able to read my mailbox. Got it to read my labels (used the Gmail API Quickstart for this), then made it send me an email, both ...
Artur's user avatar
  • 1
2 votes
1 answer
70 views

How can i fetch a child labels in a gmail through api endpoint

Initially, I have fetched the labels from the gmail through this endpoint, Now how can I fetch the child labels from the selected label like INBOX, STARRED, SENT?
premkamal's user avatar
0 votes
1 answer
243 views

Gmail API 500 error sending an email with an attachment and a specific email address - NodeJS [closed]

I have a NodeJS app that among doing other things sends emails using the Gmail api with simple pdf attachments. This worked for months and then suddenly it stopped working and I started getting 500 ...
Bailey's user avatar
  • 3
0 votes
0 answers
114 views

When sending a reply with the Gmail API, is there a way to include the text from the previous emails?

When I use the MS Graph API to reply to emails, it automatically adds the quoted text to the reply email from previous emails in the email thread. Is there a way to accomplish this with the Gmail API ...
data-dawg's user avatar
0 votes
0 answers
50 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 ...
JessyJane's user avatar
0 votes
0 answers
76 views

Email signatures for employees using Google Workspace

I'm developing a web app that allows you to create email signatures for your company. The idea is that once you have your email signature, I want users to be able to click a button and install those ...
Cris's user avatar
  • 1
0 votes
0 answers
65 views

Mail tags in the Contact Form 7 Message Body aren't working when using WP Mail SMTP Wordpress plugin with Gmail API

I have Contact Form 7 working to submit emails from my site, however when using the WP Mail SMTP plugin and Gmail API, the tags in 'Message Body' aren't working. It worked before I started using the ...
CryptoPiggy's user avatar
0 votes
0 answers
34 views

How to ignore images attached from the signature from Gmail API (Python)

I would like to ask about using the Gmail API. I want to know if I can use Python to fetch data from the Gmail API, but I'm not sure if it will be able to ignore images attached from the signature in ...
Willy Suppawit's user avatar
0 votes
1 answer
69 views

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can ...
Paul Lewallen's user avatar
0 votes
1 answer
98 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 ...
Harsh's user avatar
  • 3
0 votes
0 answers
85 views

Increasing error 500 on GMail API sending

My company has a "send mail" module. In this module customers can define their own GMail account for sending mails through the app: // Send using the simple upload request for the Gmail API ...
Noam Benyamini's user avatar
-3 votes
1 answer
101 views

How can I add sending emails in my webapp?

I built a webapp using spring boot and I want to add send emails feature, which allows users to send emails to their contacts using their own email address. How can I setup this feature? I think using ...
Soumitra Agrawal's user avatar
2 votes
2 answers
240 views

Google Workspace Admin SDK Email Log Search Reports API: How to retrieve email delivery status?

I'm using the Google Workspace Admin SDK Reports API - Email Log Search in Node.js to retrieve email logs for messages sent from my domain. I'm able to get details like: Sender email Recipient email ...
Shafi_dev's user avatar
0 votes
0 answers
57 views

Email Address Authentication for Gmail API Fails

I'm trying to make the GMail API work. This is what I have: A project in the Google Cloud for the Gmail API. Valid client ID and client secret codes. Valid redirect_uri Valid test user Redirect and ...
Dave's user avatar
  • 13
-1 votes
1 answer
147 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. ...
codingWars's user avatar
0 votes
1 answer
102 views

Strange characters turning up in generated email messages

Using GMail api to send emails from within various apps. Use MimeKit to generate message content. The issue is when I generate my message and send it off, I always get a number of instances of  ...
Shane Brodie's user avatar
0 votes
0 answers
151 views

Mail sent through Gmail's API with Python is being identified as spam/phishing

I just learned how to write a Python script that uses Gmail's API to send mails automatically and it works fine except for a couple of issues. First, all the mails sent throught this method have a ...
Flavio Fernandes's user avatar
0 votes
0 answers
60 views

Why are some emails not being moved to trash using Gmail API in a batch process?

I'm working on a Node.js application using NestJS and the Gmail API to move emails to trash in batches. However, users are reporting that not all emails are being moved to trash. For example, out of ...
aromanarguello's user avatar
0 votes
0 answers
123 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 ...
5tanczak's user avatar
  • 171
0 votes
1 answer
52 views

Not able to set custom display name

I'm not able to set a custom display name. Logs seem correct: Sender: Admin Display Name [email protected] To: [email protected] But in the email resulted, display name is missing. ...
gva12's user avatar
  • 3
1 vote
0 answers
340 views

Getting "Error 401: disabled_client" in Google OAuth API Before Using the API

I recently set up a new Gmail API project in the Google Cloud Console, but I’m facing an issue before even getting the chance to use it. Whenever I try to authorize the API, I receive this error: ...
Ela Gürler's user avatar
0 votes
0 answers
169 views

invalid_grant using Gmail API

I have a node.js backend that uses gmail API to retrieve user emails. The problem is that for some users who recently sign up to use the app they get an "invalid_grant" error after some time....
Chris's user avatar
  • 103
0 votes
1 answer
203 views

Gmail with Nextjs 15 Reply conversation

i working with Gmail in Nextjs 15, i can get all my email, sending email, but my reply has a problem.when i reply a mail, in my mail conversation i can fetch every previous mail which is fine. but the ...
Peter Just Peter's user avatar
1 vote
1 answer
102 views

Gmail API notifications to PubSub

I am working on some email automation that requires using the GMail API and PubSub as described in the Google document here: https://developers.google.com/gmail/api/guides/push. This setup requires ...
Abhinav Ankur's user avatar

1
2 3 4 5
87