gmail

Can I get a URL link to a Gmail draft using the Gmail API?

爷,独闯天下 提交于 2019-12-07 02:49:23
问题 The new Gmail API allows us to create and view drafts, but is there a way to get a URL link to view the draft? I can manually create the link using the draft's ThreadId with something like this: https://mail.google.com/mail/u/0/#drafts?compose={ThreadId} But that is somewhat fragile if Google decides to change how those URLs are structured. I also don't know if the URL will be different for people in other countries. The 0 will also change depending on how many accounts you are logged into in

Rails app, gmail gem, xoauth: How to grant access to a specific application?

与世无争的帅哥 提交于 2019-12-07 02:31:25
I have a Rails application in which I would like to use the gmail gem to connect to a Google Apps account via XOauth and retrieve emails. I followed the gmail_xoauth instructions using the xoauth.py tool to generate tokens. This gives "anonymous" access to my Google Account. I am able connect via my Rails console just fine using these credentials. I see that the gmail_xoauth gem has options for :consumer_key and :consumer_secret. I used "anonymous" for each of these. But, if my Rails application is going to be running at, say, http://someapp.example.com , how do I grant access to this

How to fetch Gmail contacts? [closed]

眉间皱痕 提交于 2019-12-07 01:35:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . I have a scenario in my current application where I want to fetch the Gmail id's of my users. Could anyone tell me the way with piece of code in C#? Note: I am developing a web-base application in asp.net with C#. 回答1: Use the google contacts api there are C# sample there. 回答2:

Push email to a apache/php server

我的未来我决定 提交于 2019-12-07 00:32:32
We've built a web service that needs to check constantly for email messages. Basically, an user sends us an email, and the server should make actions based on that email. We could use a crontab PHP script that checks for new messages every minute, with POP. But that's kind of offensive to the popserver and not very efficient (1min is too long). But, I've read about PUSH email using IMAP around mobile devices. In my case is not a mobile device but a webserver. Can I push an email to my webserver and have it execute a PHP script? We're using GMail as POP/SMTP/IMAP server. EDIT 1 from the answers

kaggle, gmail, 烟雨朦胧

人走茶凉 提交于 2019-12-07 00:09:24
kaggle, gmail, 烟雨朦胧 刚才为了体验kaggle,用gmail重新登录,需要验证十几年前在桂林使用的手机号,竟然找到了,终于又可以上了。 那是一个在烟雨江南里努力奋斗而又迷失自我不堪回首的青葱岁月。 2019/12/6 来源: https://www.cnblogs.com/xiexiaokui/p/12000222.html

How to read the Content Type header and convert into utf-8 while Gmail IMAP has utf8 and Outlook has ISO-8859-7?

拜拜、爱过 提交于 2019-12-06 20:43:16
问题 So I get emails using imap from gmail and outlook. Gmail encodes like this =?UTF-8?B?UmU6IM69zq3OvyDOtc68zrHOuc67IG5ldyBlbWFpbA==?= and outlook encodes like this =?iso-8859-7?B?UmU6IOXr6+ft6er8IHN1YmplY3Q=?= Unfortunately I did not find yet any solution that will help me make this into readable text. Instead I am messing with: mb_convert_encoding($body, "UTF-8", "UTF-8"); and mb_convert_encoding($body, "UTF-8", "iso-8859-7"); but I am struggling to find a solution to solve this matter. This

Gmail signature not working on mailto

有些话、适合烂在心里 提交于 2019-12-06 18:33:26
问题 When I use Gmail to send an email, the email signature defined in the settings is automatically added at the bottom of the email. However, when I open a mailto link to send a message, the email signature is not automatically added. Here's the code: <a href="mailto:john@smith.com?subject=Thanks for your time&body=Hi,%0A%0AIt%20was%20a%20real%20pleasure%20speaking%20with%20you.%20Thank%20you%20for%20your%20time%20and%20we'll%20be%20in%20touch%20soon." target="_blank">test</a> And there's a

Send an email through gmail but configure a different email address

雨燕双飞 提交于 2019-12-06 16:45:51
I'm trying to send emails from my rails application using GMail's smtp server. The emails I send appear like sent from my own gmail address, while I would like them to be coming from info@myapp.com. I've configured the thing using the three ways authentication, and my app has got its unique password. Here's my production.rb config.action_mailer.default_url_options = { host: 'my ip', protocol: 'https' } config.action_mailer.delivery_method = :smtp config.action_mailer.asset_host = "https://my ip" and here's my initializers/smtp.rb MyApp::Application.configure do config.action_mailer.smtp

GmailApp.sendEmail() From Plus Address

拥有回忆 提交于 2019-12-06 16:45:34
Question: Is there a way to override the account email address and replace it with a plus address on the same account? I'm using the GmailApp.sendEmail() method in Google Apps. The account e-mail address is a non-plus (obviously) address, but I use several plus addresses to filter messages into categories. When I send a message with sendEmail(), it uses the main account address and it does not appear that there is a way to change this for a script. While I can set the "name" for the account, I'd like to set the from address to a plus version of the account address. (I remember running into

Getting e-mail ID of sender while fetching mails from Gmail

橙三吉。 提交于 2019-12-06 16:33:43
问题 I am fetching email from gmail where I can fetch body, name of the sender etc. I have to get the email-id of the sender, which I am not able to get. I have tried with some variables names like fromaddress after fetchting headerinfo by imap_header but didn't work. Can I get some help regarding this ? function connect_mail(){ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = '*****@gmail.com'; $password = '*****'; $inbox = imap_open($hostname,$username,$password) or die(t('Cannot