gmail

Username and Password not accepted in yii2

╄→尐↘猪︶ㄣ 提交于 2019-12-11 09:55:45
问题 I have a error with yii2, I can't send emails via yii with a email account. If my password is correct :( This is my code: web.php 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'transport' => [ 'class' => 'Swift_SmtpTransport', 'host' => 'smtp.gmail.com', 'username' => 'user@hya.com.mx', 'password' => 'passwd', 'port' => '587', 'encryption' => 'tls', ], ], 'log' Controller.php Yii::$app -> mailer -> compose() -> setFrom('users@hya.com.mx') -> setTo('jhon@hya.com.mx') -> setSubject('Test')

Gmail API: Triggering in-webpage refresh

僤鯓⒐⒋嵵緔 提交于 2019-12-11 09:42:59
问题 I'd like to trigger the in-webpage refresh button programmatically for the purpose of applying labels to emails without making the user manually refresh the page or make some other page action in order to see the labels. Is this possible to do? All of the documentation I am finding is surrounding refresh tokens, which is obviously something different. Thank you for your time. 回答1: There's no way to do that from the Gmail REST API (i.e. trigger refresh action in web browser viewing the gmail

Sending email from gmail directly in android from my app without opening the gmail compose activity

∥☆過路亽.° 提交于 2019-12-11 09:29:13
问题 I am developing an android app where in an activity, I want to sent email. Now the scenarios are: 1. The activity will send email only via the default gmail account of the android device. (No "Send via" picker will be shown) 2. the mail will automatically be sent without opening the gmail compose activity when I click on the SEND button of my Activity. How can I do that ? Additional question: is it possible to disable editing of send to, subject and email body of gmail from my app ?? if

Getting an error when sending email through Gmail SMTP

梦想与她 提交于 2019-12-11 09:16:36
问题 Basically I have attempted to send an email when a button is pressed. With the following code, I get an error that says something about 'The SMTP server requires a secure connection or the client was not authenticated'. What is causing this error? Imports System.Net.Mail Private Sub Button1_Click_2(sender As Object, e As EventArgs) Handles Button1.Click Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.Credentials = New _ Net.NetworkCredential("MYEMAIL@gmail.com"

Any way to show two widget side by side in gmail add on?

青春壹個敷衍的年華 提交于 2019-12-11 08:58:32
问题 I am creating a gmail add on - Requirement I want to include a button and key value add-on on the same row - Status Currently only one widget can be shown on 1 line Is there any way to show two widgets side by side ? 回答1: Take a look at the screenshot below [ 1 We got around this by adding a setOnClickAction and setButton method on a key value pair. Both "Activities" and "+New" are clickable and perform different actions. activitiesListSection.addWidget(CardService.newKeyValue() .setContent("

Export Gmail Contacts to CSV using PHP

雨燕双飞 提交于 2019-12-11 08:18:44
问题 I'm trying to write a PHP script to backup my Gmail contacts. I found an article which described using the Zend framework in combination with the Google Contacts API in order to query contacts, I managed to get it working however the amount of information returned is far from adequate. Here is the article: http://www.ibm.com/developerworks/opensource/library/x-phpgooglecontact/index.html And here is my code: $fp = fopen('file.csv', 'w'); foreach ($results as $r) { $master = array(); $master[0

javascript cloneNode with events

女生的网名这么多〃 提交于 2019-12-11 07:27:12
问题 I am working on a greasemonkey script for gmail where i need to make a copy of the "Inbox" link. Using cloneNode works ok, but i think there's an onclick event that gets attached to it at runtime. So, this is a two part question: 1. Is there a way to see what events are attached to a node? 2. Is there a way to copy those events as well? The closest thing i found was jQuery, and i am not ready to go there yet. Thanks! 回答1: Not unless it's set using the onclick attribute on the element. Not

how to make Gmail Chat Bot, a simple one?

天涯浪子 提交于 2019-12-11 07:16:55
问题 I want to make a gmail chat bot. i dont know anything abt it. What language, what software to use? Can google app engine and eclipse be used? 回答1: Check this two links out it will surely help you out http://code.google.com/appengine/docs/java/xmpp and http://blog.appenginefan.com/2009/09/my-first-attempt-at-xmpp-in-java-app.html 来源: https://stackoverflow.com/questions/11307927/how-to-make-gmail-chat-bot-a-simple-one

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:

Trouble sending via gmail's SMTP server with Java

馋奶兔 提交于 2019-12-11 06:44:27
问题 One of my customers is using Gmail for business (part of Google Apps) and I had to reconfigure the website I've developed so it would match the new credentials. After a bit of struggle due to TLS errors, I've managed to make the code work on localhost and on my test server (both Apache Tomcat 5.5). Everything was going smooth until I had to move it on his server (another Tomcat 5.5 as the hosting company told me). On the client's server I get the following error: javax.mail