@mattwarkentin Thanks for the reply!.
I am trying to explore your recommended {gmailr} package. I am facing some issues.
I visited console.cloud.google.com/apis/credentials ... created a project and downloaded ID in the .json format.
However, when I ran following code, I did get this error. Any idea why this happens?
use_secret_file("test3.json")
Warning message for above code:
"Use gm_auth_configure() to configure your own OAuth app. That will
dictate the app used when gm_auth() is called implicitly or explicitly to
obtain an OAuth2 token."
gm_auth_configure(path = "json stored at working directory and the path given here/id name.json")
No message on the console window and did not direct to the browser either.
test_email <- gm_mime(
To= c("receipent1@gmail.com","receipent2@gmail.com"),
From = "sender@gmail.com",
subject="Hello World!",
body="Can you hear me from R?")
send_message(test_email)
The ERROR message as follows:
Error: Can't get Google credentials.
Are you running gmailr in a non-interactive session? Consider:
- Call
gm_auth() directly with all necessary specifics.
Any idea with this errors.
Thank you in advance.