Questions tagged [gmail-api]

Use the Gmail API to add Gmail features to your app. RESTful access to threads, messages, labels, drafts and history. Easy to use from modern web languages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

is poll-based Gmail sync better than Cloud Pub/Sub?

In the guide document under "Push notifications > Overview > Note," it seems that Pub/Sub is not recommended for user-owned devices. There might be reasons for this recommendation. why ...
Ella Kim's user avatar
1 vote
1 answer
38 views

Attachment Download from Gmail by NodeJS

I have an Automation script based on NodeJS which fetches the data from Gmail. But my attachment which is a PDF, its content is getting converted into strings when my code is downloaded in my local ...
Sultan Ahmed Siddiqui's user avatar
0 votes
1 answer
31 views

Fetch inbox email using React

I want to fetch user emails(readonly) using react and display them on screen. For login i'm using @react-oauth/google and Gmail API from google dev console account APIs. what are neccessary auth to ...
Naveen Singh's user avatar
0 votes
1 answer
26 views

GMAIL API Acces token duration

How can I extend the gmail api access token to 1 week? I see that a service account is necessary? To have a service account do I have to pay? Since I tried to create one and it asks me to have google ...
Starky Medina's user avatar
0 votes
1 answer
47 views

Gmail API: Forwarded Email Replies Not Appearing Under The Original Thread [duplicate]

I'm working with the Gmail API and encountering an issue with email threading. Here's the workflow: User 2 subscribes pub/sub notifications. User 1 sends an email to User 2 via Gmail's web client. ...
Cem's user avatar
  • 428
-1 votes
0 answers
32 views

How to start authorization of desired email in Google OAuth2 for Node.js?

I know how to use Google OAuth 2 in Node.js but I want to enable authorization just for desired email (prompt containing just specific email). I know that I can validate on callback but it would not ...
Yash Gandhi's user avatar
0 votes
1 answer
38 views

Sending emails via Gmail

I have a pet project and all I want is to have the server send me a status email every day that everything updated smoothly etc. Gmail used to let you use their SMTP server with just a login but have ...
stevew's user avatar
  • 674
0 votes
1 answer
75 views

Trying to authenticate with smtp.gmail.com via XOAUTH2

I'm using PHPMailer to authenticate via XOAUTH2 with smtp.gmail.com in order to send an email. However, I'm getting an authentication error with an inadequate response: 2023-11-17 06:32:29 SERVER -&...
muz the axe's user avatar
-1 votes
1 answer
44 views

Why is my Python SMTPLib email script not working and how do I fix it?

So I used a Youtube Tutorial to write a basic Python email script. The comments said that the video was very helpful, yet my code is not working. My code looks like this from email.message import ...
Bird's user avatar
  • 27
0 votes
1 answer
36 views

Python forward a gmail message using Google API

I'm trying to forward a message using Google's API client. In order to do that, I am reading the message, modifying it and would then like to send it, but I run into a problem where the message that I ...
Muriel's user avatar
  • 473
2 votes
1 answer
36 views

Error 4000 Precondition Check Failed - Google Gmail Api Service Account

I am facing an issue when I tried to implement a connection to the gmail api using a service account and get the Error: Error 400: Precondition check failed., failedPrecondition The following is the ...
Harmandeep Dubb's user avatar
0 votes
0 answers
37 views

JavaScript Gmail API code not working on Django template

im testing a simple Gmail API integration to my django app and its not working. Im trying to migrate the javascript example from the Google docs website, and migrate it to my django proyect, yet ...
Hower Software's user avatar
0 votes
1 answer
36 views

Drafting a reply with gmail API doesn't attach draft to thread

I want to implement functionality to append a draft as a reply to an existing thread of emails using the gmail API in Python, but my drafts intended to be replies to a thread are created as standalone ...
David Enders's user avatar
0 votes
0 answers
36 views

Google oAuth 2.0 API Authentication Error: Error 400 - redirect_uri_mismatch

I've seen a bunch of posts talking about this error, and I've tried all the fixes, but nothing seems to work. The main fix they say to do is to put the url that is shown in the error into the list of ...
Radical's user avatar
0 votes
0 answers
58 views

Gmail message shows actual upload date after import via Python script and not the date from the eml file

the following Python script should import eml files which are located within a specific folder and assign a pre-defined label. In general the script is working and doing its job. There is just one ...
x0100's user avatar
  • 119
1 vote
1 answer
59 views

cheerio.load() expects a string node_modules/cheerio/lib/load.js:74:1

I am working Cypress Typescript and have integrated gmail-tester in my automation. The issue im facing is very weird. I am trying to click on a button from the email Everything seems to be workinf ...
Mariam Aslam's user avatar
0 votes
0 answers
15 views

Disabling product carousel previews or annotations in Gmail (Promotions)

I am looking to NOT display product annotations or the product image/link carousel that pops up in promotions in the gmail app. We do not have this coded in, but seems to pull automatically. This ...
Jeff Oliver's user avatar
0 votes
0 answers
36 views

How to add new message to an existing thread in NodeJs using Gmail Api

I'm creating services to replicate gmail using Google apis. I want to add a new message in an existing thread, i have threadId for a particular thread. I have implemented search all mails for a ...
SameemSh.'s user avatar
0 votes
0 answers
40 views

Gmail API historyId if there are no messages during users.watch

I am running into an issue where I am saving the historyId from users.watch. I am doing a null check to make sure that historyId is returned which it passes, but somewhere my downstream interprets it ...
Sup3r D's user avatar
  • 127
0 votes
1 answer
20 views

Gmail API doesn't recognize my attchments as attachments but as multipart/mixed why?

My method of sending mail with attachments works, however, the API doesn't recognize my attachments as attachments but as multipart/mixed. It's annoying because I need the id of my attachments for the ...
Mr12's user avatar
  • 1
0 votes
0 answers
14 views

How to read emails via Python from Gmail inbox account that has delegation rights for my account

I have to read emails and their attachment files from Inbox that has delegation rights for my account. Considering I don't have any credentials of delegated account I don't find out any pythonic way ...
Atharva Adsul's user avatar
0 votes
0 answers
20 views

service.users().drafts().update to attach pdf

With this python function I'm trying to update a gmail draft attaching a pdf: def create_draft_with_attachment(service, user_id, draft_id, attachment_path): draft = service.users().drafts().get(...
Marta Piñol's user avatar
0 votes
1 answer
35 views

Problem sending utf-8 display name in Gmail API

So I have a function which I use to send emails through Gmail API: def send_email(payload, messagesubject, sendtoaddresses, key_file_path: str, subject: str): messagedraft = MIMEText(payload, &...
AdeQ's user avatar
  • 1
0 votes
0 answers
10 views

How to get the source of sent email message using the Gmail APIS

We are using Gmail APIS to send and webhooks to receive the emails. Is there any way to identify if the email is sent through APIS or if it's directly sent using Gmail interface. We need this ...
Manoj Kumar's user avatar
2 votes
1 answer
276 views

Getting Precondition check failed - when using gmail api with a service account

I'm trying to fetch the gmail inbox directly from backend by a cronjob, with no browser or oauth thing. here is the error i get Google\Service\Exception: { "error": { "code": ...
Ahmed Wagih Refaey's user avatar
0 votes
0 answers
20 views

How to fix the value of the redirect_uri when using the Gmail API?

I'm trying to access my Gmail Email through their API in order to automate the classification of my Emails but I can't fix the value of the redirect_uri to http://localhost:8080/... I've tried adding ...
Ben's user avatar
  • 1
1 vote
1 answer
37 views

Using GmailApp and CC more than 100 people

I am using a free AppScript account, when I try to send a message using GmailApp and CC less than 100 people there is no problem, but more than 100 people get the message: Exception: Limit Exceeded: ...
Khôi Tiêu's user avatar
0 votes
1 answer
89 views

Google API: Access mailbox to query mails

IDE: MS Visual Studio - C# Code Screenshot: Code ServiceAccountCredential cred; //UserCredential cred; string[] scopes = new string[] { GmailService.Scope.GmailLabels, GmailService....
Jonathan's user avatar
0 votes
0 answers
43 views

Getting gmail messages through gmail api gets slower

I've tried getting the mail details but the response keeps getting slower and slower. I've used google api for listing the emails and looping throught the email ids to get the email details. Here's ...
Prabin Panta's user avatar
0 votes
0 answers
19 views

X-Failed-Recipients value in json output

I am pulling the api https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{(id)} I get the full body with all the headers and values in the output but I need to generate the response schema ...
Rita Workato's user avatar
0 votes
1 answer
50 views

GmailApp.createDraft fails, requiring scope gmail.settings.basic

I have a verified Gmail add-on that uses the restricted scope gmail.settings.basic. I received a message from Google that it needs to be re-verified. I found a simpler approach requiring no restricted ...
Rick Mohr's user avatar
  • 1,935
0 votes
0 answers
27 views

Retrieving Gmail emails using C# and Gmail API: Getting data from the wrong Gmail account

I'm facing an issue with a C# method I've written to retrieve Gmail emails using the Gmail API. Even though I'm signed in with a specific Gmail account for authentication, let's call it GmailAccount1, ...
Naveen Kumar's user avatar
0 votes
0 answers
62 views

SMTP Error 454 4.7.0 during sending email through Gmail API

We are facing an error during sending emails from our website through gmail with custom domain. It was working for years for us, but last week error appeared. In our logs we're seeing this: SMTP ERROR ...
Alex912118's user avatar
1 vote
2 answers
126 views

Refreshing Google API credentials throws TypeError after working several times in Python

I am trying to authenticate and send an email using the Gmail API in Python. I've set up a function to handle the authentication. It worked well for several times, but then I started encountering an ...
falukky's user avatar
  • 1,129
0 votes
0 answers
62 views

FIlter Gmail API label ids with AND condition

I set up a workflow to trigger an appscript when some emails are received. At a high level, the steps are: New - i.e. unread - messages that match some criteria are automatically starred using a ...
Luca's user avatar
  • 61
0 votes
1 answer
33 views

Google gmail api rate limite exceed error

I am using google gmail api for read otp, but whenever I try to run this function it somethimes gave user rate limit exceed, here what I should change to overcome this error. this error i am getting ...
sanket kheni's user avatar
  • 1,512
0 votes
0 answers
21 views

Gmail api returns results that are semantically different from those shown on gmail UI

I am using gmail api to provide a one stop search solution for all your SAAS applications but the results from Gmail UI are different from that provided by the UI. The differences stated on google ...
Findr's user avatar
  • 1
1 vote
0 answers
33 views

Can a Google Oauth refresh token cover multiple urls?

I have 3 sites running which all use the same credentials.json file and have the same Refresh token. Reason being is that all 3 sites are listed in the redirect URLs so I assumed they could inter-...
Antony's user avatar
  • 3,958
0 votes
1 answer
74 views

How to read Gmails using the api?

so I was able to put a code together that allows me to retrieve unread messages from last 48 hours , thanks to @LindaLawton-DaImTo. here, I'm having problems to prettify the output (which is in a html ...
Kanaparthy Jaswanth's user avatar
1 vote
0 answers
55 views

Is there a limit to Gmail filter-criteria Query size/length?

I want to add newsletter/mailing list emails to a filter and attach an action to it. The filter criteria query size could go up to 100s of emails (format: {from:email1 from:email2 ...}) So I want to ...
Indian-dev's user avatar
1 vote
0 answers
42 views

How can we integrate my gmail account inbox messages to my website using asp.net c#? I want to diaplay the details in the webpage

'm trying to integrate my asp.net mvc website with my Gmail account and tryin to retrieve the mails and display it into my website. It can read the messages from the inbox but its not showing in my ...
Pallavi Puley's user avatar
2 votes
2 answers
183 views

Email tracking pixel tracking email opened even when sender is clicking on the email

I am building an email application using gmail api to send an email reference docs to track if the receiver has opened email I am adding 1x1pixel in the email html body. I want to do these two things ...
Cycl0n3's user avatar
  • 659
1 vote
1 answer
73 views

How to Download Gmail Credentials.json File from google cloud using C#

Good day! I have already developed an email sending application using C#. First of all, I have to create the credentials.json file manually and then set the location. Now, I would like to know how to ...
MD FAISAL's user avatar
0 votes
0 answers
20 views

Gmail delegation access

I have a software in C# where I use Google C# SDK and my admin user access token has the gmail.readonly scope. When trying to make queries for the Gmail messages , I encounterd an issue where I can ...
EladW's user avatar
  • 3
0 votes
0 answers
37 views

Google social login issue while getting basic profile data

currently i am using react and spring boot as google social login. on react side i am using react-oauth/google and i am getting access token from google side. but when i call below api from java side ...
umesh's user avatar
  • 155
0 votes
1 answer
272 views

How to use Gmail API without OAuth consent screen?

I'd like to use Gmail API to automatically reply on some emails. The app works only by authorizing by Google OAuth consent screen. The problem is that the time of the token is limited, and I need the ...
NeoN's user avatar
  • 109
0 votes
1 answer
49 views

Do not encode UTF-8 characters in the query parameter in an http request

My English is from Google Translate, so sorry if it's not clear enough. I'm using Tim Hall's WebRequest class to make http requests. By default it encodes UTF-8 characters that are in the URL, in ...
יעקב טורק's user avatar
0 votes
1 answer
82 views

How to convert email as a blob in Gmail Addon Using Card Services

My aim to convert an email's content, with attachments, into a binary large object (blob) format within the Gmail add-on. I'm getting the body content using the below function but I'm not able to ...
Shiv Yadav's user avatar
0 votes
0 answers
36 views

Is it possible to change Gmail signature for mobile client using Gmail API?

I am able to change the signature for Gmail website using sendAs->patch request - it works perfectly fine, although the signature is not attached when sending emails from the Android client. I ...
grudus's user avatar
  • 33

1
2 3 4 5
86