gmail

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

我们两清 提交于 2019-12-08 08:08:11
问题 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

SwiftMailer connection established error

孤人 提交于 2019-12-08 07:22:42
问题 I have problem with sending mails. I using SwiftMailer 5.1.0 and account on gmail, smtp port 465 and openssl is enable, but I have this error: Serwer: smtp.gmail.com:465 ssl From: BizIn - system mailowy <isystemnew.pcet@gmail.com> To: test7771@test.pl Mail debug: Connection could not be established with host smtp.gmail.com [ #0] At my localhost everything is okey and mails are send. But on serwer I have error. Localhost using PHP in version 5.4.31, but at server is 5.6.0. 回答1: The fix here

VB .Net Sending email using Gmail account

余生长醉 提交于 2019-12-08 06:58:26
问题 Why does this timeout? Dim s As New SmtpClient s.Host = "smtp.gmail.com" s.Port = 465 s.EnableSsl = True s.Timeout = 5000 s.Credentials = New NetworkCredential("my.name@gmail.com", "mypassword") Dim m As New MailMessage m.To.Add("my.name@gmail.com") m.From = New MailAddress("my.name@gmail.com") m.Body = "Test Message" m.Subject = "Test Subject" s.Send(m) These settings come straight from my Outlook Express test setup, and it can send fine. Set really long timeout = does nothing Change port

“X-GM-THRID” via imap php

白昼怎懂夜的黑 提交于 2019-12-08 06:55:00
问题 Vivek, could you give an example HOWTO grab "X-GM-THRID" via imap php? 回答1: It's simple with Zend's IMAP class. The IDs in the web interface are supposed to be HEX versions of the same number Gmail expects through IMAP (http://www.limilabs.com/blog/tag/x-gm-thrid), tough I'm still having trouble using those because if I convert them from HEX the numbers are a bit off. $imap = new Zend\Mail\Protocol\Imap('imap.gmail.com', '993', true); $imap->search(array('X-GM-THRID', '1424628081834791276');

Templated email using Apps Script based on data in Google Sheets

家住魔仙堡 提交于 2019-12-08 06:52:42
问题 I'm new to scripting so I hope someone can help me create one. I'm trying to create a script for a sheet that can send an email when a custom menu is pressed. Here's a file to work on. https://docs.google.com/spreadsheets/d/1Ea-3eZoclHrAkZLwRmWWFbmbnn4dESNWvK_6pn1DCbE/edit?usp=sharing Also, it should only send it if a column (ex. Column I) has a specific Value like 'Approved' Email content should look like: Subject: Leave Application # 'ColumnC' Hi 'ColumnA', We received your 'ColumnB'

sending mail using gmail , codeigniter ,wamp localhost

↘锁芯ラ 提交于 2019-12-08 06:45:57
问题 I have problem to send email using wamp server .I got this error: 220 smtp.gmail.com ESMTP s10sm40910411wjp.3 - gsmtp hello: 250-smtp.gmail.com at your service, [151.232.116.37] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 Failed to send AUTH LOGIN command. Error: 530 5.7.0 Must issue a STARTTLS command first. s10sm40910411wjp.3 - gsmtp Unable to send email using PHP SMTP. Your server might not be configured to send mail using

GMail Username and Password not accepted error when sending email with SwiftMailer

 ̄綄美尐妖づ 提交于 2019-12-08 06:07:00
问题 I get the following error when trying to use my GMail account to send an email from my PHP application with SwiftMailer. 535-5.7.8 Username and Password not accepted This is my SwiftMailer code: $transporter = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl') ->setUsername('ayrshireminiscontact@gmail.com') ->setPassword('~password-in-here~'); $mailer = Swift_Mailer::newInstance($transporter); $message = Swift_Message::newInstance('Portfolio Enquiry') ->setFrom(array(

Get all the mail with body using imap in python

吃可爱长大的小学妹 提交于 2019-12-08 06:02:08
问题 I am new to python and want to get all the mails with the body in the gmail account , but i am able to get only the oldest email. My code is given below , thanks for help in advance. #!/usr/bin/env python import getpass import imaplib import email from email.parser import HeaderParser M = imaplib.IMAP4_SSL("imap.gmail.com", 993) add = raw_input("Email address: ") password = getpass.getpass() M.login(add, password) M.select() resp, data = M.FETCH(1, '(RFC822)') mail = email.message_from_string

Gmail IMAP Authentication — imaplib.authenticate takes exactly 3 args (4 given)

天涯浪子 提交于 2019-12-08 05:46:12
问题 I'm trying to enable Gmail IMAP access from my web application. Right now, users can grant access to the web application, successfully retrieving and storing the user's token and secret. But, when I try to authenticate the IMAP connection for retrieving emails, it gives the following error: TypeError: authenticate() takes exactly 3 arguments (4 given) Here is the code (very simple): import oauth2 as oauth import imaplib consumer = oauth.Consumer('token','secret') token = oauth.Token('token',

Android: Share zip file via Gmail

99封情书 提交于 2019-12-08 05:09:32
问题 I'm working on an Android application that should allow the users to share their content via Gmail. I'm using android version 2.2(Froyo). The problem is that I can't find any working solution for this, I tried almost everything ,but with no luck. this is the code I'm using: Intent sharingIntent = new Intent(Intent.ACTION_SEND);; sharingIntent.setType("application/zip"); sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getString(R.string.share_subject)); sharingIntent.putExtra