gmail

Gmail Add-On: Oauth not being triggered

大憨熊 提交于 2021-01-27 04:19:32
问题 In the code below, 'Test' button triggers a function which calls an external endpoint to load data. However, nothing happens when the button is clicked and I get a 400 error in the console area saying Invalid Argument . Code.gs function buildAddOn(e) { // Create a section for that contains all user Labels. var section = CardService.newCardSection() var action = CardService.newAction() .setFunctionName("testCall"); var button = CardService.newTextButton().setText('Test').setOnClickAction

Laravel mail with g suites and XOAUTH2

回眸只為那壹抹淺笑 提交于 2021-01-27 04:06:08
问题 I have a g suites account and applications associated with my e-mails. I was looking at the Laravel mail functions but I do not see any option to log in to gmail smtp with xoauth auth type. I was using PHPMailer with codeigniter and I had to use clientId, clientSecret and refreshToken to send emails via smtp.gmail.com Is there any chance I can authenticate using xoauth with native laravel swiftmailer? 回答1: Since Laravel doesn't have available configuration to set AuthMode then we need to

Laravel mail with g suites and XOAUTH2

霸气de小男生 提交于 2021-01-27 04:04:52
问题 I have a g suites account and applications associated with my e-mails. I was looking at the Laravel mail functions but I do not see any option to log in to gmail smtp with xoauth auth type. I was using PHPMailer with codeigniter and I had to use clientId, clientSecret and refreshToken to send emails via smtp.gmail.com Is there any chance I can authenticate using xoauth with native laravel swiftmailer? 回答1: Since Laravel doesn't have available configuration to set AuthMode then we need to

Why I can't send emails using smtp.gmail.com:587 on ipv6?

妖精的绣舞 提交于 2021-01-25 06:45:12
问题 I have tried to send emails from my server using smtp.gmail.com:587 on ipv6 but I get this error: === Connected to smtp.gmail.com. <** 421 4.7.0 Try again later, closing connection. -> QUIT *** Remote host closed connection unexpectedly. On the server I use swaks to test this using the following command: swaks -6 --server smtp.gmail.com:587 --from from@gmail.com --to to@gmail.com -tls -a LOGIN But if I use the swaks on ipv4 I can send email with no problems: swaks -4 --server smtp.gmail.com

Why I can't send emails using smtp.gmail.com:587 on ipv6?

我与影子孤独终老i 提交于 2021-01-25 06:42:04
问题 I have tried to send emails from my server using smtp.gmail.com:587 on ipv6 but I get this error: === Connected to smtp.gmail.com. <** 421 4.7.0 Try again later, closing connection. -> QUIT *** Remote host closed connection unexpectedly. On the server I use swaks to test this using the following command: swaks -6 --server smtp.gmail.com:587 --from from@gmail.com --to to@gmail.com -tls -a LOGIN But if I use the swaks on ipv4 I can send email with no problems: swaks -4 --server smtp.gmail.com

Google Script - get data from Gmail into Sheet

百般思念 提交于 2021-01-08 04:56:29
问题 I have been looking around here on SO and on Google, but I cannot find anything that is working. So when I am running my code below, I am getting the result on the image. I want to extract data from the newest/most recent thread in mails that have a specific label. However, in my Gmail , I only have the 3 mails under "Action"-label that I have highlighted in bold. The other mails have been deleted, hence, they are in trash, but do still have the "Action" label. I want to only show the mails

Google Script - get data from Gmail into Sheet

蹲街弑〆低调 提交于 2021-01-08 04:54:46
问题 I have been looking around here on SO and on Google, but I cannot find anything that is working. So when I am running my code below, I am getting the result on the image. I want to extract data from the newest/most recent thread in mails that have a specific label. However, in my Gmail , I only have the 3 mails under "Action"-label that I have highlighted in bold. The other mails have been deleted, hence, they are in trash, but do still have the "Action" label. I want to only show the mails

Google Script - get data from Gmail into Sheet

陌路散爱 提交于 2021-01-08 04:53:11
问题 I have been looking around here on SO and on Google, but I cannot find anything that is working. So when I am running my code below, I am getting the result on the image. I want to extract data from the newest/most recent thread in mails that have a specific label. However, in my Gmail , I only have the 3 mails under "Action"-label that I have highlighted in bold. The other mails have been deleted, hence, they are in trash, but do still have the "Action" label. I want to only show the mails

Trying to use nodemailer to send emails using gmail and am receiving the error: “Can't create new access token for user”

帅比萌擦擦* 提交于 2021-01-05 11:39:29
问题 I currently have a setup to send emails using nodemailer from gmail. It works correctly when I manually create an access token (which only last for ~1 hour). However, after that hour has passed I get the below error. Note, during that hour I am able to send emails just fine and everything works. { Error: Can't create new access token for user at XOAuth2.generateToken (C:\Users\user\My-Projects\***\node_modules\nodemailer\lib\xoauth2\index.js:162:33) at XOAuth2.getToken (C:\Users\user\My

GMail Google Apps Script Plugin “The value returned from Apps Script has a type that cannot be used by the add-ons platform”

余生颓废 提交于 2021-01-04 04:36:22
问题 In the last 24 hours, a previously working GMail plugin I run has started failing. I stripped it all the way down to only trying to get the example from the docs working: var action = CardService.newAction().setFunctionName('composeEmailCallback'); CardService.newTextButton() .setText('Compose Email') .setComposeAction(action, CardService.ComposedEmailType.REPLY_AS_DRAFT); // ... function composeEmailCallback() { var thread = GmailApp.getThreadById(e.threadId); var draft = thread