4,333 questions
1 vote
1 answer
64 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: ...
1 vote
0 answers
43 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 ...
0 votes
0 answers
101 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. ...
0 votes
0 answers
51 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 ...
0 votes
0 answers
55 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 ...
0 votes
1 answer
87 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é...
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]. ...
3 votes
1 answer
127 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 ...
0 votes
0 answers
71 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....
0 votes
1 answer
149 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 ...
0 votes
1 answer
71 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 ...
-1 votes
1 answer
114 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 ...
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 ...
0 votes
1 answer
91 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 ...
0 votes
1 answer
137 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 ...