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
102
votes
3 answers

Animated icon in email subject

I know about Data URIs in which base64 encoded data can be used inline such as images. Today I received an email actually an spam one in which there was an animated (gif) icon in its subject: Here is the icon alone: So the only thing did cross my…
revo
  • 47,783
  • 14
  • 74
  • 117
97
votes
15 answers

How can I shift-select multiple checkboxes like GMail?

In GMail, the user can click on one checkbox in the email list, hold down the Shift key, and select a second checkbox. The JavaScript will then select/unselect the checkboxes that are between the two checboxes. I am curious as to how this is done?…
Ascalonian
  • 14,409
  • 18
  • 71
  • 103
95
votes
5 answers

How to get focus to a Chrome tab which created desktop notification?

I would like to implement same functionality as Gmail has nowadays. When new email arrives or new chat comes, notification popup appears and if you click it, the tab with Gmail gets focussed. I have this code: var n =…
Frodik
  • 14,986
  • 23
  • 90
  • 141
92
votes
17 answers

How to to send mail using gmail in Laravel?

I try again and again to test sending an email from localhost but I still cannot. I don't know anymore how to do it. I try search to find solution but I cannot find one. I edited config/mail.php:
SRENG Khorn
  • 1,201
  • 1
  • 12
  • 22
90
votes
11 answers

Google's Imageless Buttons

There have been a few articles recently about Google's new imageless…
MikeN
  • 45,039
  • 49
  • 151
  • 227
88
votes
20 answers

HTML image not showing in Gmail

I'm sending an e-mail newsletter in HTML. Inside the HTML I have something like When I open the newsletter with Thunderbird or Outlook, the image is being…
Rita
  • 1,233
  • 2
  • 14
  • 23
88
votes
21 answers

Javamail Could not convert socket to TLS GMail

I'm trying to send an email using JavaMail through Gmail SMTP Server. This is the code: final String username = "mygmail@gmail.com"; final String password = "mygmailpassword"; Properties props = new Properties(); props.put("mail.smtp.auth",…
user962206
  • 15,637
  • 61
  • 177
  • 270
84
votes
1 answer

Gmail extensions mail count is not working

The Gmail inbox feed is recently having issues updating. It is only updating after 2 consecutive and different emails have been marked as unread. This is the official Gmail inbox atom feed API which is having issues as of May 30th and which many…
Jason
  • 911
  • 1
  • 7
  • 12
83
votes
13 answers

How can I download all emails with attachments from Gmail?

How do I connect to Gmail and determine which messages have attachments? I then want to download each attachment, printing out the Subject: and From: for each message as I process it.
anon
82
votes
13 answers

Unable to send email using Gmail SMTP server through PHPMailer, getting error: SMTP AUTH is required for message submission on port 587. How to fix?

I would like to send an email using Gmail SMTP server through PHP Mailer. this is my code IsSMTP(); $mail->CharSet="UTF-8"; $mail->SMTPSecure = 'tls'; $mail->Host =…
Mohammad Masoudian
  • 3,483
  • 7
  • 27
  • 45
81
votes
1 answer

Is there a trick to display svg images in gmail?

I've been trying to display them, but to no avail. I'm wondering if there's a trick to displaying them, because I'm able to get clients such as Outlook to display SVG's. It's really bothering me that gmail can't display them.
AstuteAskings
  • 871
  • 1
  • 6
  • 6
76
votes
10 answers

Getting mail from GMail into Java application using IMAP

I want to access messages in Gmail from a Java application using JavaMail and IMAP. Why am I getting a SocketTimeoutException ? Here is my code: Properties props = System.getProperties(); props.setProperty("mail.imap.host",…
Dave of San Ramon
  • 1,471
  • 1
  • 11
  • 8
76
votes
5 answers

Using curl to send email

How can I use the curl command line program to send an email from a gmail account? I have tried the following: curl -n --ssl-reqd --mail-from "" --mail-rcpt "" --url smtps://smtp.gmail.com:465 -T file.txt With…
NSNolan
  • 1,025
  • 1
  • 13
  • 18
74
votes
13 answers

Gmail wraps certain HTML elements in a class called im

I have been testing out an HTML e-mail process I've created recently. But as of lately, when I open the e-mail in Gmail, I'm noticing that certain elements are wrapped in a class that I know I didn't put in the original HTML layout. In fact I just…
klewis
  • 7,459
  • 15
  • 58
  • 102
71
votes
4 answers

How to send email using simple SMTP commands via Gmail?

For educational purposes, I need to send an email through an SMTP server, using SMTP's fundamental and simple rules. I was able to do that using smtp4dev. I telnet localhost 25 and and commands are: I want to do the same thing, using Gmail SMTP…
Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188