gmail-api

trying to reply to an existing email with gmail API

↘锁芯ラ 提交于 2019-12-11 07:04:08
问题 I'm trying to reply to an existing email with Gmail API: Since I don't have in the existing mail that i want to reply to the headers of References, In-Reply-To then i'm using the Message-ID instead to fill what I'm sending DB5PR03MB1206D3A24F124BDF43A5C6E683D60@DB5PR03MB1206.eurprd03.prod.outlook.com is the Message-ID header of existing mail. I've created the following RFC-802: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit References:

Access user mails via Gmail on Android

雨燕双飞 提交于 2019-12-11 06:59:42
问题 I am trying to access sent mails with gmail on an android app. I tried to follow this but I don't understand how to get the Gmail API instance. I also found two ways to connect: the gmail API one and Google Sign-In. What's the difference between them and which one should I use ? Is this the way to access user's mails with my app ? 回答1: What's the difference between them and which one should I use ? Is this the way to access user's mails with my app ? Google Sign-in for Android is good for

Can access new gmail api by using GoogleApiClient(Android)?

和自甴很熟 提交于 2019-12-11 06:53:55
问题 Is a way to access from android the new gmail api by using GoogleApiClient and get messages from account? If is possible can someone give me an example or guiding me? If not what is the best way to get the messages from account by not using imap or smtp. 回答1: I was facing the same issue, the solution was given on Google development site. this is how it can be done , add scopes as "oauth2:" + GmailScopes.MAIL_GOOGLE_COM u can add muliple scopes comma seperated but you have to use oauth2:

A lot of messages with subject “Attachment” and label “Trash”

删除回忆录丶 提交于 2019-12-11 06:03:23
问题 I very confused with one thing. I create a message and attach three files to it. Then i call method Users.messages: list from Gmail API and see one my message with label "Draft" and 3 messages with subject "Attachment" and label "Trash". Questions: Why did i get my attachments as message in trash ? How can i filter such message/attachment when retrieve message list from Gmail Api ? 来源: https://stackoverflow.com/questions/40928257/a-lot-of-messages-with-subject-attachment-and-label-trash

Reset the login cookie by API

安稳与你 提交于 2019-12-11 05:46:01
问题 I wonder if there is any way to reset login cookies through the API. I know there is how to do this through the settings in admin. 回答1: There's no direct API for resetting the login cookie. There's a workaround idea from this SO post. For more info, you can also check this Google thread. 回答2: According to the G Suite forum, the only way to to do this is through a force password reset using Dito GAM on the user side. Related question from SE: Is it possible to reset sign-in cookies for all

Sending an email in HTML and plain with a Gmail Apps Script

牧云@^-^@ 提交于 2019-12-11 05:24:35
问题 I'm writing an auto-replying bot for gmail using Google Apps Script (http://script.google.com). Each time I use GmailThread 's Reply to reply to message: var htmlbody = "Hello<br>This is a <b>test</b>.<br>Bye."; var body = "Hello,\nThis is a test.\nBye."; thread.reply(body, {htmlBody: htmlbody, from: "Myself <hello@example.com>"}); I need to write the message both in plain text body and HTML in htmlbody . Would there be a way to write an email only in HTML (to avoid writing every email

Send Email in Google AppMaker

半腔热情 提交于 2019-12-11 04:29:16
问题 A button won't perform following sendEmail(widget) on server script when clicked. But it also didn't show any error. function sendEmail(record) { var to = record.OwnerEmail; var subject = 'Contract Renewal Notice'; var body = 'Hello!<br/><p>Please be inform that your following contract is expiring soon:\n<br/>\n</p>'+ '<b>Contract Name</b>'+'<?= record.Name ?><br/>'+ '<b>Contract Value</b>'+'<?= record.Currency ?>'+' '+'<?= record.ContractValue ?><br/>'+ '<b>Contract Owner</b>'+'<?= record

cannot send email using gmail account from android using javax

扶醉桌前 提交于 2019-12-11 04:25:17
问题 Error sending email: returns 451 4.5.0 SMTP protocol violation, see RFC 2821 g5sm13340466pfg.0 - gsmtp. After getting the oauth token , type and oauth expire from gmail . here the following code used to test send email using oauth2 . private String GenerateOAuth2String(boolean base64_encode){ String OAuthString = ""; Log.e("SendTestActivity", "AuthToken: " + authToken); OAuthString = String.format("user=%s\1auth=Bearer %s\1\1", userName, authToken); Log.e("SendTestActivity", "non base 64: " +

Gmail History list is not giving complete data

落爺英雄遲暮 提交于 2019-12-11 03:36:39
问题 I am trying to get history from historyId which gmail api watch() gives https://developers.google.com/gmail/api/v1/reference/users/history/list I am getting historyId in the response like below { historyId: 12345 } I tried adding fields argument with no luck. request to https://www.googleapis.com/gmail/v1/users/me/history?startHistoryId=12345&fields=historyId,history(id%2Cmessages) is also failing Am I doing anything wrong? 回答1: The response tells you that nothing has happened since the time

Can Gmail messages be archived via the API?

混江龙づ霸主 提交于 2019-12-11 03:35:50
问题 It doesn't appear to be possible to archive mail using the API. Archiving in the web interface involves moving , rather than labeling a message to "All Mail". Not only is there no "All Mail" label listed by the API, but move is missing as well. There is only modify and this allows only adding or removing labels from a message. This is strange, because the docs say it's possible to "Create filters to automatically label, forward, or archive messages". Additionally, the filters action API