Questions tagged [gmail]

1

votes
0

answer
47

Views

Output HTML From getRawContent() Imap - Zend Mail

So Im using ZEND MAIL to do an IMAP connection to Gmail to get Emails So I have $emailContent = $mail->getRawContent($id); Which gets me content that looks like so '--000000000000fe4838056bb3f88c\r\nContent-Type: text/plain; charset=\'UTF-8\'\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n...
GrahamMorbyDev
1

votes
0

answer
65

Views

Python SMTP stuck with no error

I'm using python 2.7 with the package that is installed with ArcGIS 10.5, which is what I also run on the servers. We have access to python 3, but it is unused. I'm trying to setup a python script to send emails like I have done in the past, but I keep getting my code stuck at this point with no err...
David Gaworski
1

votes
0

answer
314

Views

How to store credentials Gmail API

I've connected Gmail API to Django project. I have a problem with storing credentials of every user. What is the most correct way to store them, so every users can log in? Without storing it just creates one file for one user and that's all. Should I create a database? This is my 'quickstart' file f...
Peter Myhaleha
1

votes
1

answer
118

Views

Gmail REST API returns “Label color not allowed” on PATCH Label

i'm using the Gmail REST API to update a label's name. Using the PATCH method: https://www.googleapis.com/gmail/v1/users/userId/labels/id I am passing only the Label name property. If the label doesn't have color everything works fine, but if I have set some color from the Gmail client (from the p...
D. Gencheva
1

votes
0

answer
32

Views

remove a gmail email tag python 3.6

I'm working with the library imaplib following this example to retrieve some attached files from my emails. Now once I have processed the files I'm trying to place the email in a new tag LMS_processed and I need to remove them from Inbox to avoid process them later on. My code to move to a new tag...
1

votes
1

answer
133

Views

Can a gmail addon search/read other emails?

Can a gmail addon search/read other emails? I am trying to list matching emails in the addon. function show_matching_emails(e) { var accessToken = e.messageMetadata.accessToken; GmailApp.setCurrentMessageAccessToken(accessToken) var messageId = e.messageMetadata.messageId; var message = GmailApp.get...
Lincoln D
1

votes
0

answer
238

Views

Send Email in Google AppMaker

A button won't perform following sendEmail(widget) on server script when clicked. But it also didn't show any error. function sendEmail(record) { var to = record.OwnerEmail; var subject = 'Contract Renewal Notice'; var body = 'Hello!Please be inform that your following contract is expiring soon:\...
alep
1

votes
0

answer
128

Views

Gmail Push notification PHP backend error

This is my code for gmail watch request push notification define('SCOPES', implode(' ', array( Google_Service_Gmail::MAIL_GOOGLE_COM) )); $this->client = new Google_Client(); $this->client->setApplicationName(APPLICATION_NAME); $this->client->setScopes(SCOPES); $this->client->setAuthConfig(CLIENT_S...
1

votes
0

answer
153

Views

How to compose Gmail redirection URL?

I would like discuss a scenario on this platform.I am reading my Gmail mailbox using a PHP-IMAP script, what this script output is all recent email received(display output over browser).But when I clicked on link of html content it gets redirected directly to destination page.When same link is click...
champs
1

votes
1

answer
664

Views

Cannot destructure propery error - googleapi

Error while using googleapi my error: (node:7776) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property data of 'undefined' or 'null'. at gmail.users.labels.list the confusing for me is that everything works, it prints it out as it should but why does it give me an error about be...
1

votes
1

answer
203

Views

Insufficient Permission [403] sending email

I'm trying to send emails in my web app (currently in localhost), I'm using the next code that I used (and its working) for a console app, it should open a webpage asking for google account: public async Task SendEmail(String from, String text) { try { UserCredential credential = await GoogleWebAuth...
1

votes
1

answer
25

Views

google siganute make one image have two links

so i have this image so that each side of the image but please note it is one whole image has a differnt url so when i click on me it should go to google.com and when i click on you it should go to youtube.com and i want that to work on gmail signature i did something like this but it doesn't seem...
c319113
1

votes
0

answer
52

Views

What is a gmail addon's lifecycle ? Do we have lifecycle hooks for addons?

Currently I understand that a gmail add-on loads only when we open a message. Reopening the message does not reload the add-on, this means that the addon might show outdated info. Which in my case , it does. Hence I would like to fully understand it lifecycle. And do some operation in case if it sup...
Hari Balaji
1

votes
0

answer
18

Views

Is Auto-response also sent to a person who mail to a group in which I am a member?

Recently I have activated auto-responder in my gmail account. I am aware that if someone mail me, she will get the massage. But If I am mailed indirectly, that is, if I am a member of a group and someone mail in that group, then will she find the auto-response too? Or, the person who mail me directl...
user 31466
1

votes
1

answer
163

Views

Swiftmailer unable to authenticate to GMail using oauth2 token

I'm trying to use SwiftMailer to log in to a GMail account for which I have a valid access token. I can successfully login using the account credentials: $Transport = new Swift_SmtpTransport('smtp.gmail.com',587,'tls'); $Transport->setAuthMode('login') ->setUsername('my-email-address') ->setPassword...
Pickle
1

votes
1

answer
83

Views

500 Error in Gmail User Watch API PHP

I have setup Topic and Subscription on Cloud Pub/Sub and now i m trying to set watch on my gmail account but for some reason, i m getting (500) Backend Error. Below is the code i m using: $client = new Google_Client(); $client->setClientId('google_client_id'); $client->setClientSecret('google_client...
Ravinder Singh
1

votes
1

answer
48

Views

Gmail API: messages.list suddenly there's a messages error key despite there's a nextPageToken in the prior iteration

I used to interact with the Gmail API since past year using these tests https://developers.google.com/gmail/api/v1/reference/users/messages/list#try-it but now this examples are failing because seems there are more messages but the next iteration is coming empty. Problem is in this part of the code:...
Mario Ruiz
1

votes
2

answer
499

Views

send mail using gmail api php

I have been searching for Google documentation to send a mail using gmail oauth 2 credentials. I just created a new project in console.developers.google and enabled gmail using gmail api. I created oauth credentials and even configured them in consent screen. But I am unable to send the mail I just...
rammanoj
1

votes
0

answer
92

Views

Read email in MVC web application - how let know Gmail inbox that email was read?

I set up in my MVC web application that gets all my emails from my Gmail inbox (via the Gmail API). After I read an email in my MVC web application how can I let my Gmail inbox know that the email was read & shouldn't be marked as an unread email?
fai
1

votes
1

answer
103

Views

Respond with JSON object from Express endpoint using Gmail API

I am trying to return the value of the data object from the function listLabels in my code below. I would like to have it be accessed from an Express endpoint, e.g. (localhost:3001). I have been able to console log the object and I have been able to send myself emails. Any help in returning the val...
John Love
1

votes
0

answer
77

Views

How Do I Parse a Table in a Gmail email to MySQL?

I do volunteer work for an animal rescue group and the main city shelter sends us an email every hour to our Gmail account that includes a table of data with information on every animal in the shelter. I'd like to be able to open the email; parse the table that is in the content; and import the data...
phoenixx
1

votes
0

answer
54

Views

Cordova cordova-plugin-googleplus Incremental scope

Is there a way to request an incremental scope with this after the user is logged in with the basic profile scope? Google openly encourages using incremental scope but there seems to be no way with a cordova app unless you request the full scope for the first time.
user9465677
1

votes
1

answer
74

Views

Not able to open permission page when using gmail outh2 using domain name but it works fine while using localhost VS 2017

I am new user of the outh2 gmail api. When i created the Web Api and tried to run I am able to redirect to gmail permission page on button click. But after hosting it in iis and creating a domain I am not able to redirect to permission page of gmail. Here is the code part: private GmailService Gmai...
Ashutosh Siddh
1

votes
0

answer
35

Views

Can't correctly configure iptables for nodemailer

I stuck on an issue for send mail... I have a server running Ubuntu 16.04, and on this server, I run (with pm2) a node.js server. This server must send me an email when I ask for. That worked fine but then I configured iptables and now the nodejs server can't send mail anymore... I configured iptabl...
Steve VE
1

votes
0

answer
56

Views

When sending email also receiving the email in my inbox

Why when sending an email from Gmail API one email is sent to the provided email address, but I also receive the email in my inbox? public ActionResult NewEmail(String from, String text, string To, string sub) { GmailService service = GmailServSendMail(); string plainText = 'To:' + To + ',' + from +...
fai
1

votes
1

answer
166

Views

find owner's gmail address

Before coming to the problem, the use case of my extension is to redirect to my web application with the selected content on gmail. For this, the gmail address of the loaded gmail should match with the email address that is registered for using my web application. For example, if i have signup the w...
Serenity
1

votes
0

answer
31

Views

GMail stops sending push notification to WEB

I've configured the push notifications following this guide and when calling the watch endpoint I get an expiration of about one week. During this period I expect to receive notification to the Pub/Sub topic I've configured without the need to call the watch endpoint some time before the expiration...
testing account
1

votes
2

answer
105

Views

Gmail add-on - callback from newOpenLink is not called

No matter what I do - my callback from newOpenLink() is not called. Code below is showing what I do: 1. I open link to a page on our server that gets some info 2. I use a string in 'redirect_uri' part of the query string to reload page 3. page reloads (though instead of 'https://script.google.com/ma...
Sam
1

votes
0

answer
461

Views

How to access my own Gmail account by bypassing Google Security Checkup

I have developed an automation software for verifying Google oAuth using Gmail account sign(configured my own 4 gmail accounts). It is actually working fine from my machine. While automation runs from a remote machine(ran from jenkins with 3 hrs of interval) we are obtaining a pop up for 'verify its...
An Ish A
1

votes
0

answer
136

Views

Is there a way to use Google scripts to change Gmail snooze labeling?

With the new Gmail, when threads are snoozed, they reappear with the 'Snoozed X Days Ago' annotation. Additionally, they are then sorted based on unsnooze date (i.e., when they are moved into the inbox) and not on the date of the last received message in the thread as they are normally. I can't fi...
fleapower
1

votes
1

answer
487

Views

How do you download an attachment with Gmail API with nodejs?

Im trying to make a node app on my local computer that does this: 1) Looks at my gmail inbox. 2) If an email has a certain label and an attachment, download it. Im on step 2. The part Im confused about is the part about 'parts'. https://developers.google.com/gmail/api/v1/reference/users/messages/att...
Jason Lough
1

votes
0

answer
18

Views

Mute Gmail notifiations

On my Android device (Samsung Galaxy S8; Android 8.0.0) I have set up Gmail with both my work account and my private account. How can I disable the notifications for the work account outside working hours, and how can I disable the notifications for the private account during working hours?
allanth
1

votes
0

answer
51

Views

Gmail API - Send attachment from Firebase Storage's URL

Given some URL from Firebase Storage https://firebasestorage.googleapis.com/v0/b/example/etc, how do I get the data from it in the web? Moreover, this other post teaches how to send an attachment through the Gmail API (I am already being able to send an email, but struggling with sending an attachme...
rgoncalv
1

votes
0

answer
40

Views

access currently sent/received mails from gmail mailbox

I want to access currently sent/received mails from mailbox. I had done some coding but it is not giving me only latest arrived mails in mailbox, it gives me 2 days old mails even if by applying filter to fire query of date as from-to and specifying to date as currently date on the system. What shou...
Sushama phalake
1

votes
0

answer
151

Views

GMail desktop web client does not support 'class' attribute anymore?

Does anybody noticed GMail client for desktop browsers does not support 'class' attribute in html tags of email anymore? This official example doesn't work anymore, starting from today, at my mail boxes: https://developers.google.com/gmail/design/css .colored { color: blue; } #body { font-size:...
1

votes
1

answer
106

Views

Exceeded Maximum Execution Time (Google Sheet Script)

I'm using a script to forward a long list of emails (under one label) to a new account. However, I'm hitting a exceeded maximum execution time error not even quarter way through. I was wondering if there was a workaround, maybe a possibility to store the variables on the sheet and resume after a set...
1

votes
1

answer
124

Views

Gmail SMTP timeout on 587 port, EC2 in private subnet

I have a few ec2 instances running in private subnet, one of them needs to use SMTP to send emails over 587 port, since the EC2 is in a private subnet I think im getting a timeout over the port, Is there anyway to fix this
LutherSmi
1

votes
0

answer
190

Views

Google Gmail API Java not working as expected while reading mails

I want to read mails from gmail account using Google Gmail API for Java. I have created a sample Core Java project with code given at google console developer example for gmail app here I ran this code and I am getting java.net.SocketTimeoutException: Read timed out exception. Details of implementat...
Mohammadashraf
1

votes
0

answer
53

Views

Gmail add-on to pull data from many URLs

We are writing a Gmail add-on for synching the user's work schedule into his/her Google calendar. This requires logging into the the employer's workforce management application and fetching data from it. Every different employer is a different customer with a different URL. So, for every customer wh...
Bert Porter
1

votes
2

answer
299

Views

Gmail API quickstart.py script returns KeyError '_module'

I enabled the Gmail API and downloaded the .json file containing the token. I placed it in the same folder as the script. When I try to run it, I get this error: Traceback (most recent call last): File 'email_clean.py', line 14, in creds = store.get() File 'C:\Python27\lib\site-packages\oauth2clien...
PowerSystemsDev

View additional questions