gmail

node js with gmail api, The API returned an error: Error: unauthorized_client

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Edit: The error is happening on on this piece of code: var gmail = google.gmail('v1'); gmail.users.labels.list({ auth: auth, userId: 'me', }, function(err, response) { if (err) { console.log('The API returned an error: ' + err); return; } I am using gmail api with Node js. When I go through their quickstart guide I keep getting this error. https://developers.google.com/gmail/api/quickstart/nodejs The API returned an error: Error: unauthorized_client Keep in mind, I went through the quickstart with my email adress, everything was fine. No

SecurityException: Permission Denial error

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just upgraded to the new version of gmail (v2.3.5) and I've got an app that queries the content provider to get details about the contacts that messages are received for...... With the latest version I'm getting the below error: java.lang.SecurityException: Permission Denial: opening provider com.google.android.gm.provider.MailProvider from ProcessRecord{40adef58 3576:com.rageconsulting.android.lightflow/10056} (pid=3576, uid=10056) requires com.google.android.gm.permission.READ_GMAIL or com.google.android.gm.permission.WRITE_GMAIL` For

PHPMailer - SMTP ERROR: Password command failed when send mail from my server

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have used phpmailer() concept to send mail to users from my shared server using php script, but I'm not able to send even though everything is right in my script according to phpmailer code. My code like this: $message = " This is testing message from my server"; $mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->Host = "smtp.gmail.com"; $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure

Unable to retrieve gmail messages from any folder other than inbox (Python3 issue)

筅森魡賤 提交于 2019-12-03 02:08:09
Update: my code works under python 2.6.5 but not python 3 (I'm using 3.4.1). I'm unable to search for messages in the "All Mail" or "Sent Mail" folders - I get an exception: imaplib.error: SELECT command error: BAD [b'Could not parse command'] my code: import imaplib m = imaplib.IMAP4_SSL("imap.gmail.com", 993) m.login("myemail@gmail.com","mypassword") m.select("[Gmail]/All Mail") using m.select("[Gmail]/Sent Mail") doesn't work either. But reading from the inbox works: import imaplib m = imaplib.IMAP4_SSL("imap.gmail.com", 993) m.login("myemail@gmail.com","mypassword") m.select("inbox") ... I

Gmail Account SMTP -> ERROR: Failed to connect to server: Connection refused (111)

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im using phpmailer to send emails using google business apps. Everything was running fine but since last three days, I've started to get the following error SMTP -> ERROR: Failed to connect to server: Connection refused (111) The following From address failed: example@example.com The strange thing is that, this doesn't happen all the time. For example, Out of 10 emails, I get the above error for 9 and 1 email sometimes is sent out to recipient. Here is my code <?php function sendmail($mail_to,$mail_sub,$mail_mesg){ //mail("casper.kotwal

Check unread count of Gmail messages with Python

匿名 (未验证) 提交于 2019-12-03 01:46:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I check the number of unread Gmail message in my inbox with a short Python script? Bonus points for retrieving the password from a file. 回答1: import imaplib obj = imaplib.IMAP4_SSL('imap.gmail.com','993') obj.login('username','password') obj.select() obj.search(None,'UnSeen') 回答2: I advise you to use Gmail atom feed It is as simple as this: import urllib url = 'https://mail.google.com/mail/feed/atom/' opener = urllib.FancyURLopener() f = opener.open(url) feed = f.read() You can then use the feed parse function in this nice article:

Programmatically searching GMail?

£可爱£侵袭症+ 提交于 2019-12-03 01:25:17
Is there any way to programmatically search GMail, preferably using C#? For example, I'd like to get all email messages matching the search label:MyLabel from:no_reply@foo.bar , so that I can parse the email bodies as required. The only thing remotely feasible I've found is the GMail API by Johnvey Hwang , though it doesn't look like it supports searching email and also hasn't been updated in many years either. In any case, I haven't had much luck in getting it to even connect to my account so far, and was wondering if this even works anymore? Create an IMAP client, or use a library , to

Using PHP, How to search through Gmail's archived emails

非 Y 不嫁゛ 提交于 2019-12-03 01:20:42
( First time programming in PHP. Had some help. Need a bit more. ) Goal: Pull the lastContactDate from a given email address from my gmail account. Hoping to answer the question, "When was the last time I contacted [Person]" What I've done so far: Connected to gmail using imap (inbox only) Grabbed the date and time Printed the person's name and timestamp. What I can't do: Scour emails for lastContactDate that have been archived (I'm an inbox=0 guy) Notes: The code is rough, but functional. The php should really be separated onto different pages, but this is first attempt. Thanks in advance for

Attribute Error trying to run Gmail API quickstart in Python

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: It looks like there might be a version mismatch problem here. How should I go about fixing it? I've trying updating six with pip, but that doesn't do anything. Here's the error I see: Traceback (most recent call last): File "./quickstart.py", line 27, in credentials = run(flow, STORAGE, http=http) File "/Library/Python/2.7/site-packages/oauth2client/util.py", line 137, in positional_wrapper return wrapped(*args, **kwargs) File "/Library/Python/2.7/site-packages/oauth2client/old_run.py", line 120, in run authorize_url = flow.step1_get

Connecting to POP3 with gmail fails

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: when I connect to a POP3 account using Gmail, It shows POP3 Access Fails for that label Here I attach a screenshot of the problem. Error: Server is temporarily unavailable. Server returned error "Error in RETR command: no such message" 回答1: I suggest you to try with a different email client, I had similar problem with gmail, but i was able to solved that using sparrow in mac. 回答2: https://productforums.google.com/forum/#!topic/gmail/oUnb3ASPc0g 回答3: I had this issue today. I connected to the mail server with Thunderbird. Then, I deleted spam