How can I send mails from R via Outlook?
I was told to use the sendmailR package, but I could not figure out how to specify certain control settings (su
sendmailR
Or you can use DescTools::SendOutlookMail()
DescTools::SendOutlookMail()
library(DescTools) SendOutlookMail(to = c("me@microsoft.com", "you@rstudio.com"), subject = "Some Info", body = "Hi all\r Find the files attached\r Regards, Dude", attachment = c("C:/temp/fileA.txt", "C:/temp/fileB.txt"))