gmail

Connecting to the Gmail IMAP API in javascript/node.js

两盒软妹~` 提交于 2019-12-03 07:39:52
问题 I am trying to connect to gmail via its IMAP API. I am using Bruno Morency's node-imap library for that. For creating the oauth_signature, timestamp and nonce I use another library. To be more specific: The ressource-owner has already authenticated the consumer. So I do have an access-token + secret. Of course I also have the consumer's secret+token. So what I want is to login with the XOAuth mechanism described here (heading: SASL Initial Client Request). When executing the code I get an

Greasemonkey script for inserting math in gmail

我怕爱的太早我们不能终老 提交于 2019-12-03 07:29:38
I wish an easy way to communicate mathematical equations with gmail. There's a javascript script called AsciiMath, which should translate Tex-like equations into standard mathML. I thought that it would be nice to use this script with GM. I thought that before sending the email, this script would convert all the TeX-like equations in your email to MathML. Thus the reader which is using FF (or IE with MathPlayer installed) would be able to easily read those equations. Ideally, I wish to somehow keep the original TeX-like equations in a plain-text message, so that it would be readable by plain

Sending email with Swift Mailer, GMail and PHP, Permission Denied Error

只谈情不闲聊 提交于 2019-12-03 07:19:50
I downloaded SwiftMailer 4.1.6 for sending email using Gmail. I had written the following code for that purpose. <?php require_once 'swiftmailer/lib/swift_required.php'; $transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl") ->setUsername('jomit.jmt@gmail.com') ->setPassword('***********'); $mailer = Swift_Mailer::newInstance($transport); $message = Swift_Message::newInstance('Wonderful Subject') ->setFrom(array('jomit.jmt@gmail.com' => 'Jomit Jose')) ->setTo(array('jomit.jmt@gmail.com' => 'Jomit Jose')) ->setBody('This is the text of the mail send by Swift using SMTP

How to tell if an email sent via Gmail REST API has bounced?

帅比萌擦擦* 提交于 2019-12-03 06:33:01
I'm sending emails via Gmail API and would like to know when the messages bounce. How can I do this? As I understand it, bounced emails usually contain some sort of header indicating a bounce such as: X-Failed-Recipients: zzzzzzzzzasdfasdfadfa@gmail.com However, there doesn't seem to always be a header indicating what original messageID it was that bounced. I was thinking of the following plan, but there are so many holes that I think I must be approaching this wrong. Send email (to a failed email) via Gmail API ---> It goes through successfully Receive the email bounced email inbox Scan email

Gmail wraps certain HTML elements in a class called im

痴心易碎 提交于 2019-12-03 06:28:45
问题 I have been testing out an HTML e-mail process I've created recently. But as of lately, when I open the e-mail in Gmail, I'm noticing that certain elements are wrapped in a class that I know I didn't put in the original HTML layout. In fact I just triple checked! When viewing the HTML email in Gmail, random sections of my form are being wrapped with... <div class="im"> .... </div> As a result, some text turns purple, while other text does not. Why does this happen? Thanks 回答1: Gmail seems to

GMail threading, IMAP and Ruby

醉酒当歌 提交于 2019-12-03 06:26:18
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", "DELETED"]).each do |msg_id| uid = imap.fetch(message_id, "ENVELOPE")[0].attr["ENVELOPE"].message_id if uid =

How do I download only unread attachments from a specific gmail label?

﹥>﹥吖頭↗ 提交于 2019-12-03 06:23:45
问题 I have a Python script adapted from Downloading MMS emails sent to Gmail using Python import email, getpass, imaplib, os detach_dir = '.' # directory where to save attachments (default: current) user = raw_input("Enter your GMail username:") pwd = getpass.getpass("Enter your password: ") # connecting to the gmail imap server m = imaplib.IMAP4_SSL("imap.gmail.com") m.login(user,pwd) m.select("[Gmail]/All Mail") # here you a can choose a mail box like INBOX instead # use m.list() to get all the

Pull to refresh like gmail new (4.5) application [closed]

柔情痞子 提交于 2019-12-03 06:22:55
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . In the new gmail application (4.5) the refresh is done by "Pull-to-Refresh" action in the Actionbar: Where can I find more information about that "Pull-to-Refresh"? 回答1: Chris Banes (the same guy that implemented

Access Gmail Imap with OAuth 2.0 Access token

半城伤御伤魂 提交于 2019-12-03 06:09:53
问题 I am using Google's Oauth 2.0 to get the user's access_token, but I dont know how to use it with imaplib to access inbox. 回答1: Below is the code for IMAP with oauth 2.0 email = 'k@example.com' access_token = 'vF9dft4qmTc2Nvb3RlckBhdHRhdmlzdGEuY29tCg' auth_string = 'user=%s\1auth=Bearer %s\1\1' % (email, access_token) imap_conn = imaplib.IMAP4_SSL('imap.gmail.com') imap_conn.debug = 4 imap_conn.authenticate('XOAUTH2', lambda x: auth_string) imap_conn.select('INBOX') for more details see the

How do I send email to my Gmail account using SMTP and Perl?

那年仲夏 提交于 2019-12-03 06:06:43
问题 I don't want to use sendmail to send an email but would prefer to use SMTP. How can I use Perl to send an email to my GMAIL account? 回答1: personally I would suggest you to use my module Email::Send::SMTP::TLS which works pretty well through the TLS of Google Mail. Thanks. use Email::Send; my $mailer = Email::Send->new( { mailer => 'SMTP::TLS', mailer_args => [ Host => 'smtp.gmail.com', Port => 587, User => 'username@gmail.com', Password => 'password', Hello => 'fayland.org', ] } ); use Email: