4,322 questions
-1
votes
1
answer
154
views
Drive API v3 rejects OAuth token when Gmail scopes are included in manifest
Problem Summary
I have a Google Apps Script that needs to:
Generate sharing links using Drive API v3 Advanced Service
Send emails with alias using Gmail API via REST
These work independently, but ...
2
votes
0
answers
107
views
How should an early-stage Gmail client choose OAuth flow to pass verification without premature CASA costs?
I’m building an alternative Gmail client with a specific workflow approach.
At minimum, the app needs scopes beyond read-only: users must be able to mark messages as read, archive, and send emails. ...
0
votes
0
answers
115
views
Gmail HTML Template
I am trying to use Jira to send HTML email template to Gmail. The HTML code is using table tags and inline CSS. However, when I test, I notice there is a gap between each block for Gmail, while I don'...
0
votes
1
answer
128
views
Need PHP code to Oauth2 authenticate and send email via Gmail API without using google-api-php-client [duplicate]
I've learned that Digital Ocean doesn't allow outgoing SMTP requests on port 587 from their droplet servers so I am trying to find the most compact PHP code available to send email using the Gmail API....
0
votes
1
answer
103
views
Message body is blank when retrieving emails with Ruby GMail API
I have some code which calls Google's Ruby API to get messages from GMail using list_user_messages.
I know from docs that the returned messages only contain an id and thread_id and therefore I have ...
0
votes
1
answer
86
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
61
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
165
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
65
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
71
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
2
answers
154
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é...
3
votes
1
answer
161
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
75
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
240
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
78
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
127
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
120
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
126
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
175
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 ...
0
votes
0
answers
42
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 ...
0
votes
1
answer
185
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 ...
3
votes
1
answer
273
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
93
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 ...
6
votes
4
answers
528
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 ...
0
votes
0
answers
87
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 ...
-1
votes
1
answer
227
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)...
-4
votes
1
answer
95
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 ...
0
votes
1
answer
242
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 ...
0
votes
1
answer
81
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 ...
2
votes
1
answer
79
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?
0
votes
1
answer
259
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 ...
0
votes
0
answers
137
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 ...
0
votes
1
answer
85
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 ...
0
votes
1
answer
112
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 ...
-3
votes
1
answer
123
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 ...
2
votes
2
answers
321
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
...
0
votes
0
answers
63
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 ...
-1
votes
1
answer
170
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
1
answer
109
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  ...
0
votes
0
answers
166
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 ...
0
votes
0
answers
131
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
73
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.
...
0
votes
0
answers
187
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....
0
votes
1
answer
240
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 ...
1
vote
1
answer
125
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 ...
1
vote
0
answers
68
views
Email Sending getting timed out
This is my python code which I m using to send email to Gmail using SMTP
import smtplib
from email.mime.text import MIMEText
subject = "Email Subject"
body = "This is the body of the ...
0
votes
1
answer
159
views
Field startHistoryId getting invalid forcing us to rescan the entire mailbox to get a new startHistoryId
We are using Datto SaaS to backup mailbox for a tenant in google workspace.
Our support on that platform has reasons to believe there is an issue on googles side causing their APIs calls to do backups ...
0
votes
1
answer
227
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
157
views
Error sending message: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
My website use smtp.gmail.com to send emails. The service has stopped. Error sending message: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
The script has working ...
1
vote
0
answers
75
views
Quota Limits for GMail batchModify
The GMail API has a batchModify method, which allows you to assign or remove labels from a large number of messages at one time.
https://developers.google.com/gmail/api/reference/rest/v1/users....