gmail

How do I get Gmail contacts using JavaScript?

房东的猫 提交于 2020-01-01 19:46:06
问题 What is the Ajax call that I should make to get gmail contacts using JavaScript? I already have the user OAuth Token which I got because the user signed up to my site using Google. 回答1: If you're using OAuth2 through JavaScript, you can use the Google Contacts API, but you'll need to get authorisation by sending the correct scope of permissions to Google when getting the access token, which is https://www.google.com/m8/feeds . (reference) As you already know how to get the access token, it's

New to Python, GMail SMTP error

北慕城南 提交于 2020-01-01 07:47:48
问题 I am writing a simple sendmail function to myself and I keep getting this error: NameError: name 'SMTPException' is not defined What is wrong with my code? Any suggestions? import smtplib sender = "user@gmail.com" receiver = ["user@gmail.com"] message = "Hello!" try: session = smptlib.SMTP('smtp.gmail.com',587) session.ehlo() session.starttls() session.ehlo() session.login(sender,'password') session.sendmail(sender,receiver,message) session.quit() except SMTPException: print('Error') 回答1: In

New to Python, GMail SMTP error

北城以北 提交于 2020-01-01 07:47:32
问题 I am writing a simple sendmail function to myself and I keep getting this error: NameError: name 'SMTPException' is not defined What is wrong with my code? Any suggestions? import smtplib sender = "user@gmail.com" receiver = ["user@gmail.com"] message = "Hello!" try: session = smptlib.SMTP('smtp.gmail.com',587) session.ehlo() session.starttls() session.ehlo() session.login(sender,'password') session.sendmail(sender,receiver,message) session.quit() except SMTPException: print('Error') 回答1: In

Download a csv file from gmail using python

我与影子孤独终老i 提交于 2020-01-01 07:14:44
问题 I tried different python scripts for download a CSV attachment from Gmail. But I could not able to get it.Is this possible. If it is possible which python script should I use? Thank you. 回答1: TL;DR If you want to skip all the details in this answer I've put together a Github repo that makes getting csv data from gmail as simple as: from gmail import * service = get_gmail_service() # get all attachments from e-mails containing 'test' search_query = "test" service = get_gmail_service() csv_dfs

How do I send e-mail using Gmail's SMTP and Indy 10?

本秂侑毒 提交于 2020-01-01 05:40:14
问题 I'm using Delphi 2009 and the lastest Indy 10 from svn to send e-mails using SMTP, but it doesn't work with Gmail (Google Apps hosted domain). When I try to send an e-mail I get "Must issue a STARTTLS command first". I tried Googling about it and I found several forums and several solutions, but they all just bashed some code or just said I needed an OpenSLL DLL, which so far isn't very clear to me exactly what I need. Can someone please tell exactly which DLL I need and what do I have to

GMail threading, IMAP and Ruby

点点圈 提交于 2020-01-01 02:45:22
问题 I am using the Ruby IMAP library to get a GMail conversation. The way that GMail threads conversations is via "Message-ID" and "In-Reply-To" message headers. For example: In-Reply-To: <c0f07c940909151905w1ad93fabx19cf595f653c8b@mail.gmail.com> Message-ID: <9cd2f5ff0909151911r30ddb805n5172970dffc872c2@mail.gmail.com> I cannot figure out how to efficiently get the replied-to message. The current way: target = <c0f07c940909151905w1ad93fabx19cf595f653c8b@mail.gmail.com> imap.search(["NOT",

How does Gmail do comet on Opera?

六月ゝ 毕业季﹏ 提交于 2019-12-31 10:00:36
问题 I would like to know how Gmail (or anyone else) does comet on Opera. Here is what I know so far from my experiments. It doesn't use the event-source tag which is broken in Opera 10.51. It doesn't use iframe which displays a spinning throbber and a busy mouse cursor. It doesn't use responseText on xmlhttprequest when readyState = 3 which is known to be broken on Opera. I tried seeing how it was done in mibbit and etherpad, and I found that they both use long-polling. Bounty The bounty goes to

Signing to Google using requests and going to youtube

吃可爱长大的小学妹 提交于 2019-12-31 06:02:07
问题 I'm trying to login to Gmail by just using requests and then proceed to watch youtube, do some searches etc. I don't want to use selenium or any other alternative to selenium as I find it bulky and inconvenient I was researching how to do this and I came across some answers here and based my code of that. However these solutions are from a couple years back and I don't know if it still applies now and if it will work to the purpose I want it to. class SessionGoogle: def __init__(self, url

Email activity on Android

不羁的心 提交于 2019-12-31 05:26:16
问题 I want to send email from Android virtual machine to my gmail account. Problem: but on pressing send button I am getting: "No application can perform this action" Here is my code: Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("audio/mp3"); //sendIntent.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/mysong.mp3"); //sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/download/test.mp3")); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(GlobalVariable

smtp gmail server php mailer not working

∥☆過路亽.° 提交于 2019-12-31 05:17:09
问题 I know this question has been asked many a times before. But the solutions didn't seem to help me . So hereby I am posting my code: <?php require("class.phpmailer.php"); require("class.smtp.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host="smtp.gmail.com"; $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->SMTPSecure="ssl"; $mail->Port=465; $mail->Username ="me@gmail.com"; $mail->Password="mypassword"; $mail->AddAddress("to@yahoo.co.in"); $mail->SetFrom("me@gmail.com", "myname");