Sending Email Attachement Through Outlook in R with RDCOMClient
问题 I'm Running a daily analysis that spits out a file I would like sent through my outlook Email. The code I used is featured here, and works wonderfully but the attachment part of it never works... library(RDCOMClient) OutApp <- COMCreate("Outlook.Application") outMail = OutApp$CreateItem(0) outMail[["To"]] = "gkinne@horizonmedia.com" outMail[["subject"]] = "Bruh" outMail[["body"]] = "Tester" outMail[["Attachments"]]$Add("L:/Document.csv") outMail$Send() The original is here: Sending email in R