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
1 answer

how to show a:hover color in gmail

i want to send a html email to gmail email box. how to show a:hover color ?
runeveryday
  • 2,751
  • 4
  • 30
  • 44
3
votes
1 answer

Google Apps Script - Changing label of individual email in Gmail

I want to change the label of an individual email programatically in gmail in a Google Script. I can't use the standard GmailApp service because it applies actions to the whole thread instead of an individual email. I've found a few examples of this…
Vanderling
  • 33
  • 1
  • 3
3
votes
0 answers

isync (mbsync) on gmail marks mail as new after move to another folder

I'm trying to use (neo)mutt combined with isync (mbsync) for reading my mail from gmail account. However I have slight issue. When I use mutt to move mail to another folder, the message is marked as "new" again. Is there a way around this? Relevant…
graywolf
  • 67
  • 5
3
votes
6 answers

Connection could not be established with host smtp.gmail.com [Connection refused #111] in laravel 5.6 email send

Email Sending failed from cpnel but it works fine in my localhost. Here is my email configuration in .env file. MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=myemail@gmail.com MAIL_PASSWORD=mypassword MAIL_ENCRYPTION=ssl It…
Amanullah Aman
  • 633
  • 1
  • 12
  • 29
3
votes
1 answer

Gmail API ID is not working but and thread ID is working

When I was querying to Gmail API results = service.users().messages().list(userId='me',q="from:xyz@wso2.com", maxResults=10).execute() I got this output. Here I don't get every messages It's only returned the Thread Id and the id "messages": [ { …
3
votes
2 answers

Send email via Gmail API (Javascript)

I'm trying to get a hello world sending a mail via the JS Gmail API. I have authorised correctly (labels can be listed) according to this. I'm using the following code, running in the browser: const message = "From: my.email@gmail.com\r\n" + "To:…
sennett
  • 8,014
  • 9
  • 46
  • 69
3
votes
1 answer

Google API Gmail error 500 Internal error encountered

I try send request https://gmail.googleapis.com/gmail/v1/users/me/messages/ using Postman, but I get: { "error": { "code": 500, "message": "Internal error encountered.", "errors": [ { …
Alarmist
  • 31
  • 2
3
votes
1 answer

smtp.gmail.com exceptions, enable to send email

I faced a problem when I get an exception using gmail smtp. 1) Allow less secure apps: ON 2) Tried ports 587, 465, 25 (same exceptions) 3) Tried to disable SSL (same exceptions) 4) telnet for smtp.gmail.com for ports 465, 587 working as well as…
Mykyta Shvets
  • 137
  • 1
  • 12
3
votes
1 answer

Connect to gmail (using imap and javamail) with encrypted password

I'm trying to connect to gmail using a simple java program (like this one). But my question is: Is there a way to do this with encrypted password and not the real password, for security reasons of course!! something like how we do in java-Oracle db…
Anand Rockzz
  • 6,072
  • 5
  • 64
  • 71
3
votes
1 answer

Gmail addon action when user is composing a message

Is it possible to create an action to trigger a function whenever the user is composing an email? I am hoping to add an extra button to the UI for composing emails which will insert some text into the email based on the subject and recipients of…
Rafty
  • 653
  • 2
  • 8
  • 23
3
votes
2 answers

How to embed an image in email?

I am trying to write a Java program where I need to send an image to Gmail. I am sending the image as an embedded object.
Bogl
  • 125
  • 2
  • 11
3
votes
0 answers

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…
fleapower
  • 65
  • 6
3
votes
1 answer

send gmail using powershell

I'm developing a simply monitoring too for my home and I need it to send me an email. However, no matter what I try, it is not connecting to my gmail account to send the notification - or even a simple test message. I have a script that is working…
CCollins
  • 41
  • 1
  • 3
3
votes
1 answer

spaces on mail body when we Open gmail app from iOS url schemes

Is it possible to provide spaces or new line or line breaks on gmail compose on URL schemes. I tried both /n or stringByAddingPercentEscapesUsingEncoding, but space or lines breaks are not reflecting. googlegmail:///co?subject=subject&body= "\n\n\n…
3
votes
0 answers

Roboto font rendering poorly in new-look Gmail (Mac)

The new-look Gmail has just been released and it replaces Arial in its UI with Roboto throughout. Roboto renders fine in other apps (Drive, e.g.) but in the new Gmail (both Chrome and Safari) the font rendering is blurry, with varying thicknesses,…
Steve Ball
  • 31
  • 2