gmail

how can i read a gmail subject with php api?

ⅰ亾dé卋堺 提交于 2019-12-07 17:38:34
问题 in witch mode a can read the email subject with php api ? i do this code // Get the API client and construct the service object. $client = getClient(); $service = new Google_Service_Gmail($client); // Print the labels in the user's account. $user = 'me'; $results = $service->users_messages->listUsersMessages($user); foreach($results as $mail){ $optParamsGet['format'] = 'metadata'; // Display message in payload $message = $service->users_messages->get($user, $mail['id'],$optParamsGet);

Gmail Send Quota, When Sending Using Google App Engine

我的梦境 提交于 2019-12-07 17:14:07
问题 Gmail imposes a daily 500 recipient quota for sending emails. If you send through their POP/IMAP interface that quota is only 100 recipients per day. What is the sending quota for sending an email on a gmail account using the google app engine? Would it follow the POP/IMAP limit or the standard gmail limit? Here is all the official gmail quota information I found: http://mail.google.com/support/bin/answer.py?hl=en&answer=22839 回答1: The answer depends on how you decide to send the email. Are

Extract info from email body with Google Scripts

怎甘沉沦 提交于 2019-12-07 17:04:06
问题 I am trying to extract specific info from email in one of my labels in Gmail. I've hacked (my scripting knowledge is very limited) the following together based on a script from https://gist.github.com/Ferrari/9678772. I am getting an error though: "Cannot convert Array to Gmail Thread - Line 5" Any help will be greatly appreciated. /* Based on https://gist.github.com/Ferrari/9678772 */ function parseEmailMessages(start) { /* var threads = GmailApp.getInboxThreads(start, 100); */ var threads =

download gmail attachements from php

穿精又带淫゛_ 提交于 2019-12-07 16:14:02
问题 can you please tell , how to download attachments from gmail account using php ? thanks 回答1: IMAP Solution /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'davidwalshblog@gmail.com'; $password = 'davidwalsh'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); /* grab emails */ $emails = imap_search($inbox,'ALL'); /* if emails are returned, cycle through each... */ if($emails) { /*

Extracting Gmail username with OAuth access token

半城伤御伤魂 提交于 2019-12-07 14:07:44
问题 I'm using OAuth to get a user to grant me access to their Gmail IMAP account. I can successfully get an access token, and need to know what endpoint I can access to get the authenticated user's e-mail address. 回答1: And you can test this feed using Google's OAuth Playground, as I just did. In step one, paste the scope: https://www.googleapis.com/auth/userinfo#email And in step six, paste the feed URI: https://www.googleapis.com/userinfo/email This should help in adapting the feed for use in

Problem with Google Apps email/smtp to send mails from website

穿精又带淫゛_ 提交于 2019-12-07 13:41:14
问题 I have an Asp.Net site which uses google SMTP to send emails.. its working fine with normal gmail accounts using the below configuration <smtp from="myname@gmail.com"> <network host="smtp.gmail.com" port="587" userName="myname@gmail.com" password="mypassword" enableSsl="true" /></smtp> Now I need to use Google Apps email and smtp and I tried to change the configuration as shown below <smtp from="myname@mydomain.com"> <network host="smtp.gmail.com" port="587" userName="myname@mydomain.com"

Problem in sending external mails in James Mail Server

*爱你&永不变心* 提交于 2019-12-07 12:12:47
问题 I am new to James Mail Server. I configured as the steps mentioned by James. I can send send mails to internal network, but I am not able to send mails to external network like gmail. Somebody please help me to resolve the issue Thanks in advance Rohith 回答1: Sorry for the late but it may help some people in the future. If you want configure JAMES to send mails to external network you must edit the file conf.xml in the ${JAMES_DIR}/apps/james/SAR-INF. Uncommented these line to define an SMTP

Custom mime type ignored in GMail app

谁说我不能喝 提交于 2019-12-07 12:05:32
问题 I'm trying to send a file in android using intents. I fire up an intent chooser and select the GMail app. The problem is that I can't set my custom mime type, it always becomes application/octet-stream. In older versions of the GMail app (or maybe older versions of Android, like pre-JB?) it worked fine doing like this: Intent sendIntent = new Intent(Intent.ACTION_SEND); // Add attributes to the intent sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); sendIntent.putExtra(Intent.EXTRA_SUBJECT

Searching emails in gmail based on time

蹲街弑〆低调 提交于 2019-12-07 11:55:08
问题 I want a list of all yesterday's emails from gmail. I am trying to process it using google apps script, by writing a query on my inbox, and then using GmailApp.search. The after: and before: search query in gmail returns results that are not expected, since the query searches on the basis of the SMTP server time that the mail is sent from (which is google's server). Hence, being in a different time zone, the search yields inappropriate results to me. Is there a way to search gmail using a

使用mutt作为email客户端

南笙酒味 提交于 2019-12-07 11:31:54
All mail clients suck.This one just sucks less. 由于 mutt 是一个有着unix哲学的程序,可定制性很强,其高级功能可以由不同的程序来完成,比如以下搭配: mutt 使用mutt内建的imap,pop,smtp支持,最简单的方式,只需要安装mutt这一个软件包。 mutt + msmtp 最简单的组合,配合imap协议,可以满足大多数人的要求 其中smtp功能由msmtp实现,你甚至可以把imap功能也由其他软件来实现 mutt + msmtp + getmail + procmail 稍微复杂一点的组合,mutt是客户端,msmtp作为mta,getmail用来收取邮件,procmail过滤邮件。 mta还可以使用exim4或者postfix替代,一般使用msmtp就够了,因为postfix实在是太好了,邮件服务器通常会选择postfix。 msmtp可以使用esmtp替代。 邮件收取功能也可以使用fetchmail替代getmail,由于需要本地mta投递,所以同时需要procmail。 procmail是一个功能及其强大的邮件过滤系统。ps:看到这句话,你就应该明白,我显然没有使用它。。。 由于Gmail服务器端垃圾邮件过滤已经做得很好了,而且我使用的是imap协议,所以不需要getmail去收取邮件