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
69
votes
12 answers

How to get rid of "Show trimmed content" in GMail HTML emails?

I send a lot of HTML emails. The problem with GMail is, if there are more than one emails with the same subject, it hides some similar content and shows a "..." to show the "trimmed content". This screws up with my formatting. If changing the…
Munim
  • 6,310
  • 2
  • 35
  • 44
67
votes
2 answers

How to use "not" in Gmail filters?

I need to create a Google App Script to respond to machine generated emails, except those also sent to one colleague or contain a particular topic outside my responsibility. I've been trying to use the GmailApp.search API which includes all mail…
pterandon
  • 1,676
  • 1
  • 13
  • 15
67
votes
17 answers

The server response was: 5.7.0 Must issue a STARTTLS command first. i16sm1806350pag.18 - gsmtp

I am trying to send mail using gmail, and I am getting an exception that is The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. i16sm1806350pag.18 -…
Ankur Gupta
  • 933
  • 3
  • 15
  • 27
67
votes
13 answers

Prevent Gmail from creating links for URLs and email addresses

Problem is Gmail automatically creates hyperlinks for all website URLs and email addresses. I do not want to create a link. var mailClient = new SmtpClient(); var netMail = new MailMessage(); msg = "I do not want www.google.com as a link at…
Manjoor
  • 4,091
  • 10
  • 43
  • 67
66
votes
8 answers

How do I implement ‘sign in with google’ on my site?

On my site I would like to allow users to sign in with a google account. I plan to use openid but I would like to allow signing in with google because it has more benefits. I've noticed in the past a few sites that have the ability to sign in with a…
user34537
65
votes
3 answers

How to develop Chrome extension for Gmail?

I'm thinking about developing Chrome extension for Gmail and I want to know what are the current best practices. For instance: attaching a GPG signature by default to every email adding an extra button that does something (I have it…
Mars Robertson
  • 12,673
  • 11
  • 68
  • 89
64
votes
8 answers

Base64 images to gmail

I'm generating some inline images for an email sent from the iPad. Looks great in all desktop email clients, but gmail doesn't seem to like the base64 image and it shows up as text. Anyone have any luck embedding images with base64 and gmail? Or…
Steven Baughman
  • 1,076
  • 2
  • 13
  • 22
64
votes
12 answers

Obtain a link to a specific email in GMail

How can I obtain a link (a URL) to a specific email in GMail? I want to click that link and open the specific email.
Kadir
  • 1,345
  • 3
  • 15
  • 25
63
votes
5 answers

Adding an attachment to email using C#

I'm using the following code from this answer Sending email in .NET through Gmail. The trouble I'm having is adding an attachment to the email. How would I add an attachment using the code below? using System.Net.Mail; var fromAddress = new…
rross
  • 2,236
  • 11
  • 36
  • 41
62
votes
14 answers

Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted

I recently encountered a SwiftMail error while trying to send a mail through gmail. Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. I was trying to send mail through my gmail and google…
Camilo Go Jr.
  • 3,184
  • 2
  • 11
  • 18
61
votes
2 answers

How to prevent links to open in Gmail's integrated mini-browser

On Android, when the user opens a mail with Gmail and clicks a link contained in the mail, then this URL is opened in sort-of a "mini browser", with a special bar at the top. In my case the URL is a Portable Web Application (PWA) and should be…
Udo G
  • 12,572
  • 13
  • 56
  • 89
59
votes
3 answers

How is GMail Chat able to make AJAX requests without client interaction?

All HTTP responses require the client to initiate them, even those made using AJAX. But GMail's chat feature is able to receive messages from other users, even when I'm just sitting in my comfy computer chair watching but not interacting with the…
chat
  • 1,789
  • 3
  • 14
  • 11
59
votes
3 answers

How to trigger a Google Apps Script once an email get in the inbox?

I have created a Google Apps Script that checks if an email has an attachment then send it to another email address. It's working fine, but I would like to create a trigger that would launch the script as soon as a new email arrives in the inbox. I…
AziCode
  • 2,510
  • 6
  • 27
  • 53
59
votes
8 answers

Image links broken in Gmail because of google's Image proxy

Image links in gmail are broken because of google's Image proxy (news1,news2). I can't load my site's images in gmail. Actual image path is: http://sampleimageurl.com/images/logo.jpg But I get the same image path like this in…
Balaji Kandasamy
  • 4,446
  • 10
  • 40
  • 58
58
votes
6 answers

HTML formatted email not showing up at all in Gmail but is in other mail clients

I'm currently sending html formatted emails from PHP's mail() function and checking them simply to make sure they are showing up as HTML (formatting aside, I'm well aware that the formatting will vary (probably drastically) from client to client).…
joshholat
  • 3,371
  • 9
  • 39
  • 48