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

How to implement Gmail Smart-Compose feature in my project using Gmail API?

I wanted to use the Gmail smart compose feature in my project. I read many documents but no documents suggest anything related to the implementation of smart compose in Gmail API. Attaching a link below about the small information about the…
1
vote
1 answer

Notgetting full body message of Gmail API with Python

I am trying to read the access code from gmailAPI, coded is not fetching the full/complete message body.I am using Python code for it I tried using various formats to fetch the complete message like Raw and Full from __future__ import…
1
vote
2 answers

How to send an existing message in a new email without losing formatting

Context: I'm attempting to send an existing email in my inbox to a new thread. Problem: I've successfully sent the email body using this function however the body loses the formatting of the original email and only sends text. I think it makes more…
koopmac
  • 936
  • 10
  • 27
1
vote
1 answer

Accessing Gmail API through Cloud Functions using Codelabs Tutorial

I am following this link step by step for accessing gmail API through cloud functions. When an email will be received by gmail it will publish a message on pub/sub. I have completed the procedure up to step#5 and when I trigger the function, the…
1
vote
1 answer

To Convert Base64 URL to Base64 Encoded format in WSO2 EI 6.3.0

I am getting email attachment(images) from Gmail API which returns base64url encoded string. But actual encoded is different from this gmail api("/" is replaced by "_" and "+" is replaced by "-" etc). I want to get original base64 encoded string…
Justin
  • 855
  • 2
  • 11
  • 30
1
vote
1 answer

How to automatically save received pdf files from gmail into a database?

I would like to know if this scenario would be possible in any programming language combined with any database technology. I would like to automatically save received pdf files that are attached in emails into a database. Is this possible? Is there…
1
vote
0 answers

PHPmail attachment does not reach Gmail + formatting errors

I use phpmail script to send attachments from site to e-mail. The script itself works. I noticed that e.g. in the case of Gmail messages are coming but without attachments. Instead, in addition to the content, there is a very long message containing…
Pat
  • 697
  • 3
  • 11
  • 30
1
vote
1 answer

How to interact with the Gmail API - Delegate User - Python 3.7

I am trying to write a Python application which simply adds a user as a delegate to another users mailbox. I am following the API @ Google API Documentation - Users.settings.delegates: create However, I am struggling to find how to the parameters…
Py.Jordan
  • 415
  • 1
  • 4
  • 16
1
vote
1 answer

Getting error while adding gmail connector in wso2 studio "Error while extracting Synapse Library : gmail-connector-3.0.8.zip"

I am trying to implement the use case https://docs.wso2.com/display/EI650/Using+the+Gmail+Connector but in my case I am applying the gmail connector in out sequence but while exporting the .car file it is failing with error "error while extracting…
Mohit Patidar
  • 179
  • 11
1
vote
2 answers

UNREAD email labels

In PHP, using Gmail api I am fetching client's gmail inbox. Using Array ( ['maxResults'] => 50, ['labelIds'] => INBOX, ['q'] => is:unread) I am searching for unread emails in mailbox/gmail but I got 1 email which is labelled with [labelIds] =>…
softech
  • 356
  • 1
  • 4
  • 23
1
vote
2 answers

GMail API user rate-limited over extended period of time

I am trying to do a simple call to get the email address of an account: gmail().users().getProfile("me").execute().getEmailAddress(); However it always returns a user-rate-limited…
1
vote
0 answers

gmail users.watch API 400 Bad Request using domain wide delegation

Getting 400 Bad Request when calling users.watch Gmail API from GCP Cloud Function I'm trying to automate the call to watch() on a users GSuite email account. I have already given domain-wide access to the default service account of the Cloud…
1
vote
1 answer

Change from address while sending email via gmail API

I want to send a mail via the gmail API. I have a function that works so far, but my problem is that I don't know how to change the from address. My mails are always send as the user I authorized the API access with. So I want my mails sent from…
fveltmann
  • 105
  • 2
  • 7
1
vote
1 answer

GAS Not getting image of mail in web page: Receiving error "ERR_UNKNOWN_URL_SCHEME"

I'm using class GmailApp of google apps script to get body of mail and show it in html. Body get ok but img of mail error: ERR_UNKNOWN_URL_SCHEME. Is there any way to retrieve the entire message body, including the image? Code GS: function…
Naoa Lee
  • 135
  • 2
  • 19
1
vote
2 answers

Is there a function in Google app script to get an array of all sent mails

I am developing a add-on program in google app script which gets all the gmail sent mails with there subject, body, attachment(if any). I have did this for the Inbox mail using getInboxThreads() function. Is there a function which does same for sent…
1 2 3
99
100