Questions tagged [gmail]

Gmail is a free email service offered by Google. ONLY use this tag for PROGRAMMING questions related to Gmail's APIs. General Gmail usage questions belong at https://webapps.stackexchange.com/questions/tagged/gmail

Gmail is a free email service offered by Google. Use this tag for programming questions related to Gmail's APIs. General Gmail usage questions belong at webapps.stackexchange.com

The Gmail API is a API that can be used to access Gmail mailboxes and send mail. For most web applications (including mobile apps), the Gmail API is the best choice for authorized access to a user's Gmail data.

The API supports many of the basic operations available through the Gmail user interface like reading, composing, and sending mail. It also lets you manage labels on threads and messages and query for specific messages and threads.

Resources

10636 questions
3
votes
0 answers

GMail SMTP does not authorize the credentials used in JavaMail API- even though they are correct

I have written a test code to send email from may Java App. Even though I am using a valid gmail address and the password, I get the following error when I run the test code: javax.mail.MessagingException: javax.mail.AuthenticationFailedException:…
Singam
  • 443
  • 3
  • 12
3
votes
2 answers

Which scope is required to send emails through gmail oauth in nodemailer?

I have setup the authentication of google accounts and I'm able to get the access and refresh token of users but when I set the scope to only https://www.googleapis.com/auth/gmail.send it doesn't work but when I set the authentication scope to…
Fateslayer
  • 91
  • 7
3
votes
2 answers

How to send a table in an email in Google Scripts?

I've been trying to create a script sending a cell array as a table (keeping formatting) however after hours and circa 30 variations of the code tested I keep on running into a wall... So far I either: 1. Get an empty email 2. Get an email with all…
MaximeIvan
  • 35
  • 1
  • 3
3
votes
2 answers

Selenium Webdriver : How to delete an open email from Gmail using selenium webdriver

Code that i have tried : driver.findElement(By.xpath("//div[@aria-label='Delete' and @role = 'button']")); and driver.findElement(By.xpath("///div[@class='iH bzn']//div[@aria-label='Delete' and @role = 'button']")); This path is not accepted by…
kunal soni
  • 585
  • 1
  • 7
  • 19
3
votes
9 answers

Webdriver to open a mail in Gmail

I have started using Webdriver to automate our testing which is 100% manual. In one of the use cases I need to click on a link sent to the user's inbox. I am facing problems with Gmail in this case. After logging in I am not able to figure out how…
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
3
votes
1 answer

How do I use this `GmailApp.sendEmail` function?

I have a Send Email Function(?) that I am using as a part of a Calendar Reservation Approval System. That function(?) looks like this: // Send Email function sendEmail(request){ MailApp.sendEmail({ to: request.email, subject:…
ercfre
  • 183
  • 9
3
votes
1 answer

Preventing Gmail From Closing / Keeping It Visible

Disclaimer before the uppity types start in: This is not to be deployed "in the wild". This is for local, personal use by a Chrome add-on only. I am not trying trick visitors to my sites or do anything else unsavory. I've seen a bit of chastising…
theraccoonbear
  • 4,283
  • 3
  • 33
  • 41
3
votes
0 answers

Outlook not reading ics file correctly like gmail

im using nodemailer to send a string generated by a package called ical-toolkit it correctly displayed the calendar event, with timezone accordingly in gmail. but in outlook it says that the calendar format is not supported. im not sure what i did…
m5kev4n
  • 541
  • 1
  • 8
  • 20
3
votes
2 answers

Extracting Gmail username with OAuth access token

I'm using OAuth to get a user to grant me access to their Gmail IMAP account. I can successfully get an access token, and need to know what endpoint I can access to get the authenticated user's e-mail address.
Raul Agrait
  • 5,938
  • 6
  • 49
  • 72
3
votes
0 answers

Send Email with Confidential Mode On in Google Apps script

Do we have any option to send email with Gmail Confidential Mode on with Google Apps script? I checked in the Gmail API Documentation but couldn't find anything.
shabnam bharmal
  • 589
  • 5
  • 13
3
votes
6 answers

how to direct open Gmail mail composer in android?

I am using the following code. Problem it that when I run this code on device. It open a Dailogbox that hase 3 options for sending a mail. "POP , email , gmail" etc. By clicking the gamil the composer appear. I just want to show Gamil mail…
Arslan Anwar
  • 18,746
  • 19
  • 76
  • 105
3
votes
1 answer

Unthread or permanently delete individual gmail messages, without turning off threading

I have documents coming in through E-mail from a scanner. The scanner CANNOT change the subject. All email subjects from scanner are same "Scan to E-mail Server Job" However, each file name is unique. Google threads the messages, and I generally…
B D
  • 303
  • 3
  • 12
3
votes
3 answers

How to get mails sent via Network.Mail.Mime classified not as junk?

I use lib Network.Mail.Mime to send emails from my Haskell program. I reckon it uses postfix to send the emails. When I try to send mails to my gmail address I do receive them, only they are in the junk, and this happens whatever I fill the "form"…
nschoe
  • 1,967
  • 1
  • 19
  • 26
3
votes
1 answer

Create a draft with PDF file as attachment using Gmail API in Java

I'm trying to create a draft with an attachment in Java using Gmail API. Creating a basic draft works, so I've eliminated any permission problem. I've used code here as an inspiration but cannot get it to work. Here's what I did so far: public…
Themikebe
  • 361
  • 1
  • 3
  • 11
3
votes
1 answer

How to copy data from Gmail message attachment to a spreadsheet?

I'm trying to get the data out of a CSV report, located in a specific folder from a shared email and replace the old data from a specific tab in Google Sheets with new ones. I already tried different solutions, but none seems to get me where I want.…
Dan
  • 43
  • 6