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
959
votes
26 answers

Sending email in .NET through Gmail

Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show. Is it possible to do it?
Mike Wills
  • 20,959
  • 28
  • 93
  • 149
407
votes
16 answers

Send email using the GMail SMTP server from a PHP page

I am trying to send an email via GMail's SMTP server from a PHP page, but I get this error: authentication failure [SMTP: SMTP server does no support authentication (code: 250, response: mx.google.com at your service, [98.117.99.235] SIZE 35651584…
skb
  • 30,624
  • 33
  • 94
  • 146
330
votes
17 answers

How to send an email with Gmail as provider using Python?

I am trying to send email (Gmail) using python, but I am getting following error. Traceback (most recent call last): File "emailSend.py", line 14, in server.login(username,password) File "/usr/lib/python2.5/smtplib.py", line 554, in…
mahoriR
  • 4,377
  • 3
  • 18
  • 27
306
votes
21 answers

Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required

I am using following code to send email. The Code works correctly in my local Machine. But on Production server i am getting the error message var fromAddress = new MailAddress("mymailid@gmail.com"); var fromPassword = "xxxxxx"; var toAddress = new…
vcs
  • 3,675
  • 4
  • 17
  • 15
263
votes
31 answers

Sending email through Gmail SMTP server with C#

For some reason neither the accepted answer nor any others work for me for "Sending email in .NET through Gmail". Why would they not work? UPDATE: I have tried all the answers (accepted and otherwise) in the other question, but none of them work. I…
CVertex
  • 17,997
  • 28
  • 94
  • 124
219
votes
14 answers

How can I send an email by Java application using GMail, Yahoo, or Hotmail?

Is it possible to send an email from my Java application using a GMail account? I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using…
Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
164
votes
18 answers

Login credentials not working with Gmail SMTP

I am attempting to send an email in Python, through Gmail. Here is my code: import smtplib fromaddr = '......................' toaddrs = '......................' msg = 'Spam email Test' username = '.......' password =…
Jacob Kudria
  • 2,200
  • 3
  • 17
  • 18
159
votes
6 answers

How to encode the plus (+) symbol in a URL

The URL link below will open a new Google mail window. The problem I have is that Google replaces all the plus (+) signs in the email body with blank space. It looks like it only happens with the + sign. How can I remedy this? (I am working on a…
user523234
  • 14,323
  • 10
  • 62
  • 102
140
votes
17 answers

Gmail's new image caching is breaking image links in newsletter

I've got some automatic emails that are sent out upon signup completion for my site. Until recently, they worked fine. Now Google's new system is rewriting the images and storing them in its cache (supposedly) However, Google's new rewriting of my…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
128
votes
4 answers

How to create Gmail filter searching for text only at start of subject line?

We receive regular automated build messages from Jenkins build servers at work. It'd be nice to ferret these away into a label, skipping the inbox. Using a filter is of course the right choice. The desired identifier is the string [RELEASE] at the…
KomodoDave
  • 7,239
  • 10
  • 60
  • 92
124
votes
2 answers

Sending email fails when two factor authentication is on for Gmail

I am using my Gmail account and smtp.gmail.com inside my web application to test and send email. when two factor authentication is ON for my Gmail account, it fails to send the email, however when I turn it off, the web application sends email…
user217648
  • 3,338
  • 9
  • 37
  • 61
120
votes
13 answers

URL to compose a message in Gmail (with full Gmail interface and specified to, bcc, subject, etc.)

I found a post that provides an example for a link which opens just a compose message window. However, I would like it to open a window with the full Gmail interface but ready to compose a new message. Of course this…
robertwbradford
  • 6,181
  • 9
  • 36
  • 61
112
votes
8 answers

Styling HTML email for Gmail

I'm generating a html email that uses an internal stylesheet, i.e.

Email content here When viewed…

Dónal
  • 185,044
  • 174
  • 569
  • 824
104
votes
2 answers

Why do I receive a DMARC report everyday?

I've setup DMARC policy on my domain. But every day I recieve an XML report from Google. I don't understand what the problem is? The report is:
IvanS
  • 1,204
  • 2
  • 8
  • 8
103
votes
12 answers

Net::SMTPAuthenticationError when sending email from Rails app (on staging environment)

I am sending email from my Rails application. It works well on development environment, but fails on staging. I get the following error: Net::SMTPAuthenticationError (534-5.7.14…
eagor
  • 9,150
  • 8
  • 47
  • 50
1
2 3
99 100