0

This MUST be on here somewhere else, but try as I can, I just can't find it.

I'm trying to email from an R script. Following this tutorial I've been able to successfully send an email from my personal outlook.

So far so good right? Well when I run the line:

my_outlook <- get_personal_outlook()

It has me authenticate in with a window that popped open. Worked fine this first time I did it, but this will run daily on a shared drive that myself and another user have access to, and she might be the one running the R file. So it might be nice to have it already authenticated in with a token or something.

In the documentation it looks like something like this would work: enter image description here

but I'm having a hell of a time getting it to work. I check the documentation for get_azure_token and it looks like a bunch of examples where I have to point it to a shiny app, etc..

Does anyone have any examples of code I could use to avoid a pop up window authentication so this R script can send emails?

Joe Crozier
  • 944
  • 8
  • 20

0 Answers0