Questions tagged [gmailr]
30 questions
17
votes
1 answer
Send HTML message using gmailr
I want to be able to use the gmailR package to send R-generated HTML reports via email inline(not as attachments). I'm unable to even send a basic HTML email using gmailr. I've attempted the following unsuccessfully and need some…

Jack Case
- 329
- 2
- 13
8
votes
2 answers
Gmailr without selecting a pre-authorised account in R
In the R script, when I try to send the email with the following codes below. It asks that the gmailr package is requesting access to your Google account. Select a pre-authorised account or enter '0' to obtain a new token. Press Esc/Ctrl + C to…

Jun Edward Shin
- 148
- 8
3
votes
1 answer
GmailR constantly requires reverification -- any better alternatives?
I've created a script in R that scrapes our clients' websites robots.txt files, checks if they've changed since the last check, and uses the GmailR package to send me an e-mail if they have.
The purpose of this script is to run in the background on…

MOliver
- 87
- 6
3
votes
0 answers
R: How do I properly access Date of a message in gmailr to sort a set of messages?
gmailr is a fantastic package. I can get messages corresponding to particular criteria, but I would also like to know for sure which message with given criteria is the latest. I got a bit stumped there.
If I do >…

r0berts
- 842
- 1
- 13
- 27
2
votes
1 answer
R - Clarifications on the expiration of Google's JSON tokens for the Gmail API if application is in "Testing" phase
BACKGROUND INFO
I have developed an application in R through the shiny package, and deployed it online through the shinyapps.io service.
Among its different functions, the shiny app can send emails (through my personal Google Account) to users if…

nd091680
- 585
- 4
- 15
2
votes
2 answers
How to send multiple attachments and images(in mail) body using GmailR package?
I have been trying to send 2 images(have to add these in the mail body) and 2 attachments(2 excel files) in one email using the GmailR package but I've not been able to figure it out so far.
I've already looked at the syntax from the documentation…

sky_megh
- 135
- 6
2
votes
0 answers
Gmail authentication error: invalid_request Missing required parameter: client_id
I am facing an issue while trying to access gmail through gmailr package.
Had given then input for Client and secret_key and it is able to run gmail_auth(..........). However, when I am trying to extract messages() I am getting 400 error.
Tried…

Rupesh Bobbili
- 21
- 1
1
vote
1 answer
What are the Limit of sending emails through Gmail API using gmailr
I used the following method to send emails
prepare_and_send <- function(sender, recipient,
title, text,
attachment) {
email <- gm_mime() %>%
gm_to(recipient) %>%
gm_from(sender)…

manoj rasika
- 65
- 5
1
vote
2 answers
How to send a bulk email with csv file and a jpg image attachments using gmailr
I want to send a bulk email with an attachment. The list of receiving email addresses and the body of the email are in a CSV file as below.
I want to attach a CSV file and a JPG image to each email. I tried the following code, but I do not…

manoj rasika
- 65
- 5
1
vote
0 answers
Different data time zones between R and powerBi Deskop using the same source code in R
I work with gmailR and powerBi and I observe that my email data have different message "time" in Rstudio (correct time UTC+1, same that in gmail account) and PowerBi (wrong time, UTC+0) when I using same query code in both tools.
Screen:
[sorry I…

Igniste
- 108
- 6
1
vote
0 answers
Gmailr last date in label [gm_label problem]
generally i need to get last (the oldest) date of message from each user label.
I have list of id from my search query (today messages) but i cant even get label by gm_label:
id (list with all ids that match to search message)
label <- sapply(id,…

Igniste
- 108
- 6
1
vote
0 answers
Using RStudio to read/write to google sheets and send emails non-interactively
So I have written a code that reads data from google sheets. Depending on what is in that data, it sends an email using information from the data. Then, it will write back the newly formatted data back to google sheets. While this all works when I…

Matthew Farquhar
- 11
- 2
1
vote
2 answers
Extract emails in brackets
I work with gmailR and I need to extract emails from brackets <> (sometimes few in one row) but in case when there are no brackets (e.g. name@mail.com) I need to keep those elements.
This is an example
x2 <- c("John Smith …

Igniste
- 108
- 6
1
vote
0 answers
gmailr package issue: Error in gmailr_POST(c("messages", "send"), user_id, class = "gmail_message", : Gmail API error: 400 Precondition check failed
I am attempting to use the gmailr package in a virtual (hosted) R Studio environment. I have created a service account, enabled the GMail API, and downloaded the client_secret.json file with Oauth credentials which works with the Google Drive and…

costebk08
- 1,299
- 4
- 17
- 42
1
vote
0 answers
TaskscheduleR not working when there is if condition in the R script
data <- read_html("https://www.amazon.in/Sony-Mirrorless-Real-time-Tracking-Vlogging/dp/B081JRT3X1/ref=sr_1_13?dchild=1&keywords=mirrorless+camera&qid=1614577648&sr=8-13")
price <- html_node(data, "#priceblock_ourprice")%>%
html_text()
price…

SIDDHARTHA SINHA
- 11
- 2