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
58
votes
8 answers

Error: Invalid login: 535-5.7.8 Username and Password not accepted

The code below is perfect to send emails using node.js code/program. However, still getting error mentioned in the title. var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport({ service: 'gmail', auth: { user:…
Haider Yaqoob
  • 1,725
  • 2
  • 11
  • 17
58
votes
9 answers

Why is Gmail blocking CSS in emails?

I used CSS in my email and sent it out. When I received the email in Gmail, all the CSS was disabled; however, when I retrieved the email in thunderbird or outlook, everything is OK. How would I fix this?
MemoryLeak
  • 7,322
  • 23
  • 90
  • 133
57
votes
4 answers

'observe' on 'MutationObserver': parameter 1 is not of type 'Node'

I am creating a Chrome extension and trying to include a small text beside the SEND button of the gMail compose box. I am using a MutationObserver to know when the compose box window appears. I am doing this by observing an element with class no…
57
votes
9 answers

Sending email via Gmail & Python

What is the recommended way of sending emails with Gmail and Python? There are a lot of SO threads, but most are old and also SMTP with username & password is not working any more or the user has to downgrade the security of their Gmail (for example…
apadana
  • 13,456
  • 15
  • 82
  • 98
57
votes
4 answers

Absolute positioning in gmail emails

I have a client who wants to send gift certificates to people who sign up on their site. They want it all designed out, so I can't just send a text email. I'm trying to position text over the image so that it can still be dynamic. I'm trying to do…
hookedonwinter
  • 12,436
  • 19
  • 61
  • 74
56
votes
18 answers

Not able to download Zip file from gmail which contains executable Jar in it

I have an email almost 4 years ago, which has Zip file in attachments containing executable jar file. I want to download that file. But, nowadays gmail doesn't allow to send or receive any executable file. Can anybody help me how can I download that…
Nijesh Hirpara
  • 1,096
  • 1
  • 12
  • 17
55
votes
6 answers

Sending mail attachment using Java

I am trying to send an email using Java and Gmail. I have stored my files on the cloud and the stored files I want to send as an attachment to my email. It should add those files to this mail and not links of those files. How I can send such…
Pravin
  • 2,871
  • 5
  • 26
  • 29
54
votes
3 answers

Gmail filter "has words" - How to include multiple AND queries?

I'm trying to filter our emails on Gmail that are: from: specific sender to: specific recipient subject: contains specific words I tried this filter: has words>> from:xxx@example.com AND to: yyy@yyy.com --> this works by its own has words>>…
Rani
  • 649
  • 2
  • 7
  • 9
52
votes
3 answers

Base64 encoded image is not showing in gmail

I have an embedded HTML email in which I'm using a base64 encoded image. Image doesn't show in gmail when accessing via chrome. But it works fine when accessing same mail via mail client(Mail application on Mac). I have set headers correctly. Any…
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
52
votes
1 answer

SVG images blocked by gmail proxy

It seems like the new gmail proxy for images doesn't work with SVG (gives a 404 error if you open the proxy url in a new tab.) I haven't been able to find any documentation about supported/blocked file-types. Is SVG in gmail working for anyone…
Redzarf
  • 2,578
  • 4
  • 30
  • 40
51
votes
10 answers

Connecting to smtp.gmail.com via command line

I am in the process of writing an application that sends mail via an valid GMail user ID and password. I just wanted to simulate the SMTP connection on my Windows XP command line, and when I telnet smtp.gmail.com at 465 port - I don't see any thing.…
Abhishek
  • 6,862
  • 22
  • 62
  • 79
49
votes
3 answers

How do I send HTML Formatted emails, through the gmail-api for python

Using the sample code from the GMail API Example: Send Mail, and after following rules for authentication, it's simple enough to send a programmatically generated email, via a gmail account. What isn't obvious from the example is how to set that…
Andrew
  • 1,423
  • 1
  • 17
  • 26
49
votes
5 answers

What is "shva" in Gmail's URL?

What is the following portion of a Gmail URL for? https://mail.google.com/mail/?**zx**=1efobg68r40co&**shva**=1#inbox If you change it, nothing happens!! I know Gmail is not an Open-Source program so we can't trace the code. But every website try…
Omar Al-Ithawi
  • 4,988
  • 5
  • 36
  • 47
47
votes
6 answers

How to get the list of available folders in a mail account using JavaMail

I am using JavaMail API to connect to my personal account. I have list of folders (labels) in my Gmail account which I created + the default folders like Inbox, Drafts etc. How can I list all the available folders (the default and the user created)?…
Jagadesh
  • 6,489
  • 8
  • 29
  • 30
47
votes
4 answers

HTML Emails: fallback for mso conditional?

UPDATE 2023: This question was originally asked in 2013 - the landscape and supported technologies have changed greatly in that time. The accepted answer is functional and effective for legacy clients, but Frank Hagenson's answer is most likely to…
CodeMoose
  • 2,964
  • 4
  • 31
  • 56