gmail

Importing gmail/yahoo/hotmail/aol address book with rails

試著忘記壹切 提交于 2019-12-07 11:20:56
问题 I want to import address book of users from their gmail/hotmail/yahoo and aol address books. I am looking for a gem/plugin in rails which can help me do this. Any help is appreciated. Thanks. 回答1: Ive been trying Contacts : http://github.com/cardmagic/contacts It allows to import contacts from gmail with 2 lines of code!!! Works wonderfully for me. Still have to check out if it supports insertion and syncing (??) maybe. 回答2: I once used a gem called Blackbook: http://github.com/purzelrakete

Sending email from gmail using Python

走远了吗. 提交于 2019-12-07 11:00:49
问题 I'm trying to teaching myself how to program by building programs/scrips that will be useful to me. I'm trying to retool a script I found online to send an email through gmail using a python script (Source). This example has a portion of code to attach files, which I don't want/need. I have tweaked the code so that I don't have to attach any files, but when I do this I lose the body of the email. Any help/tips on how to modify the code to keep the body of the email intact? Appreciate the help

imaplib/gmail how to download full message (all parts) while not marking read [duplicate]

梦想与她 提交于 2019-12-07 07:33:52
问题 This question already has answers here : Fetch an email with imaplib but do not mark it as SEEN (4 answers) Closed 3 years ago . I inadvertently marked all the messages in my inbox as read with this python statement: status, data = conn.uid('fetch', fetch_uids, '(RFC822)') But I was able to walk through all the parts of the message with the following set of statments: email_message = email.message_from_string(data[0][1]) for part in email_message.walk(): print '\n' print 'Content-Type:',part

Gmail service events?

Deadly 提交于 2019-12-07 07:32:25
I would like to run a processing function whenever a new email arrives in my inbox. I'm looking at https://developers.google.com/apps-script/guides/triggers/events . I don't see a way to trigger an event when an email arrives. Am I missing something? There are no email-based triggers in Apps Script, as Serge insas said. As an imperfect workaround, you can run a script every 5 minutes and process the messages that arrived within the latest interval. Here is an example, based on this post : function checkEmail() { var interval = 5; // if the script runs every 5 minutes; change otherwise var date

Is there a way of pasting code snippets/blocks in gmail/wave/gdocs? [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 07:03:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Often, I want to email some code without attaching a file. Are there any gmail/google wave/gdocs plugins for code sharing? Gmail would obviously be the most useful. 回答1: You could use service like pastie or pastebin and then link it in your mail. Alternatively you can also use ToHTML to generate HTML and then

In what order does the Gmail API return messages when calling “Users.messages: list”

前提是你 提交于 2019-12-07 05:49:37
问题 According to the Gmail API reference, Users.messages: list "[lists] the messages in the user's mailbox". In my observation, the messages are returned in descending order by data. Is this a correct assumption? Basically I want to be able to process a user's inbox after a couple of days without reprocessing messages I have already processed. I would do that by stopping once I stumble upon an email I have seen before. Using the history doesn't work reliable, since it is documented that history

get raw rfc822 message from phpmailer

你。 提交于 2019-12-07 05:00:35
问题 I am trying to use google-api-php-client and gmail-api to allow my users to authenticate their gmail accounts and send emails through my website. I asked a more generic questions earlier and decided to seek help from the PHPMailer community with this question. I have used PHPMailer to send emails. And I want to know if I can extract the raw rfc822 message from my PHPMailer object after setting it up prior to sending. I should be able to then do a base64_encode on that string and set the "raw"

Google Apps Script Class GmailApp Batch Operations?

江枫思渺然 提交于 2019-12-07 04:56:16
问题 I've been fooling around with GAS for a month or so now, and I've become fairly familiar with using batch operations to read/write to/from spreadsheets (e.g. getValues(), setValues()). However, I'm currently writing a script that pulls a sizable amount of data out of Gmail using class GmailApp, my code is running very slowly (and even timing out), and I can't seem to figure out how to use batch operations for what I'm trying to do. Here's my code thus far (with the email address and name

Delphi - Indy - saving GMail draft

断了今生、忘了曾经 提交于 2019-12-07 04:01:09
问题 I've been using Indy under Delphi to send message via a gmail account, using the TIdSMTP and TIdMessage components. This works absolutely fine. However, my client has requested to save the message to the DRAFTS folder to allow him to make changes to the (programatically created) message before actually sending it. GMail API is supposed to support this, but the provided examples are not in Delphi/Indy formats... I'm looking for minimal programming changes so I'd like to know if it is possible

Gmail mark as spam email with html and anchor links

跟風遠走 提交于 2019-12-07 03:27:18
问题 first of all, sorry for my bad English =( I created an HTML email, send it to yahoo, hotmail and gmail, the first and the second work's ok, received in the front of the inbox, but, the gmail mark as spam, but it will mark it as span only with I send these HTML codes: <tr> <td colspan="2" style="padding:10px; border:2px solid #e3e3e3; text-align:center;"><a href="%%url%%" style="font-size:14px; text-decoration:none; color:#595959;"><span>Clique aqui e confira todas as informações e fotos dessa