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.

Gmail API() gives you flexible, RESTful access to the user's inbox, with a natural interface to Threads, Messages, Labels, Drafts, and History. From the modern language of your choice, your app can use the API to add Gmail features like:

  • Read messages from Gmail
  • Send email messages
  • Modify the labels applied to messages and threads
  • Search for specific messages and threads

References:

4233 questions
1
vote
1 answer

Google App Script - Send long email from google sheet - email broken into lines

I tried to autosend mass emails from google script editor, using a list of email addresses on google sheet. I followed this tutorial. I used my other gmail address as a test and succeeded in receiving the email, but I found that some longer…
Alice Wong
  • 31
  • 3
1
vote
0 answers

Python GmailAPI OAuth2 issue when it asks to go to a URL on a SSH server connection

i'm using the default how to from google to set up Gmail API... I've set up an oAuth2 key in the console and when I run the python script it When I run the code in a terminal I get the URL which I copy into my web browser on a local machine. I get…
BostonMacOSX
  • 1,369
  • 2
  • 17
  • 38
1
vote
1 answer

Python Tkinter StringVar() not being packaged in a JSON request

I'm having an issue with packaging a Tkinter StringVar() variable into a function that then takes the variable and passes it to Google's Gmail API. When I replace the StringVar variable with regular strings, I don't have an issue. When I check the…
Eugene Gravel
  • 11
  • 1
  • 4
1
vote
1 answer

Gmail API Reading credentials 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

I think there is an issue with Gmail API and Python3. The original code in the documentation is in Python2, but for several reasons, including that my application is already working with Python3, I was passing the code to python3. So... after…
1
vote
1 answer

Export all emails with specified label(in Gmail) to a drive folder, and have the link to pdf along with subject and body exported to a spreadsheet

Relatively new google scripts. What I am trying to do is Select all the specified emails in a label in Gmail Save each email as a separate pdf (using subject) and save in a the specified folder in google drive Generate a link to that pdf Save in…
1
vote
0 answers

Read Gmail POST Notification using Standard Google Cloud Platform (GCP) Script

I am trying to create a subscribing webapp using Google Scripts App to receive and decode POST notifications from Gmail API whenever a new email is received. The new changes in the Google Cloud Platform (GCP) is making it very hard to work. All the…
1
vote
1 answer

How to use service account to send email through GMAIL API using Java?

I am trying to send emails from a google compute instance through GMAIL API using a service account. I have followed all the steps according to this documentation but still getting an error message saying…
1
vote
1 answer

How to use default credentials with DWD to access Drive/Gmail APIs

we want to use default application credentials (python code running in GCP) to perform domain-wide delegation to access Gmail/Drive APIs. The main reason for this is that using default credentials alleviates us from needing to create/manage a gcp…
Michael
  • 1,428
  • 3
  • 15
  • 34
1
vote
2 answers

How to combine google apps scripts into 1 to minimize GMAIL API calls

I have 9 separate scripts setup to import CSV attachments from GMAIL to Google Sheets every 5 minutes. I prefer to do this more often, but received a temp ban when trying to execute these every minute. I would also like to eliminate this error if…
Peter Chabot
  • 139
  • 1
  • 9
1
vote
0 answers

How to use Service Account Credentials (in json format) to access my gmail account using GMail API in VB.Net?

I have created a service account and also obtained a credentials file in JSON format. Can somebody point me to a sample VB.Net code for using this credentials file to access my email account? I did search extensively but I keep getting references…
M Ganesh
  • 45
  • 1
  • 9
1
vote
0 answers

Forwarding gsuite group mail to pubsub / cloud function using service account / admin console

I am an gsuite/gcp admin and want to forward all emails sent to a group into pubsub without involving any personal accounts. The process describe here fits my need except for the authentication part. I would instead like to make the forwarding bound…
johndue
  • 123
  • 5
1
vote
1 answer

C# forward a gmail message to another email address

My goal is to retrieve all emails that exist under one label within my gmail account and forward those emails to another email address. Here's what i have so far: string[] Scopes = { GmailService.Scope.GmailReadonly, GmailService.Scope.GmailSend,…
user2370664
  • 381
  • 5
  • 8
  • 30
1
vote
1 answer

Is there any way to send an email in the same thread?

I'm trying to send emails into one thread so it looks as similar as possible as sending via Gmail web UI. According to the Gmail documentation, I wrote the next code on Kotlin that works correctly, but not completely val DEFAULT_CHARSET: String =…
O.Solodovnikov
  • 99
  • 2
  • 12
1
vote
1 answer

Gmail API Java Implementation Error (Credentials not found)

I try to implement the code of GmailAPI, but the code doesn't find the credentials.jar. I put a file.exists() verification inside of the google default code, and I find them on that location. So why I see the File Not Found error in the executation…
1
vote
0 answers

How to find Gmail address from gmailId -GoogleSignIn

We use Gmail login in our mobile application, but recently we discovered that lots of users don't have e-mail addresses in our database. But they have GmailId in our databases. We use GoogleSignIn for getting Gmail information. After the tests, we…
lewisatep
  • 39
  • 4
1 2 3
99
100