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-autho
Just add the "from e-mail address" with gm_auth(email = "email1@gmail.com")
library(gmailr)
gm_auth_configure(path="C:/Users/Google Drive/email.json")
gm_auth(email = "email1@gmail.com")
my_email_message <- gm_mime() %>%
gm_to("email1@gmail.com") %>%
gm_from("email1@gmail.com") %>%
gm_subject("My test message")
gm_send_message(my_email_message)```