title: Sending Email Attachement Through Outlook in R with RDCOMClient
body: <p>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...</p>
  
  <pre><code>library(RDCOMClient)
  
  
  OutApp &lt;- 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()
  </code></pre>
  
  <p>The original is here:</p>
  
  <p><a href="https://stackoverflow.com/questions/26811679/sending-email-in-r-via-outlook">Sending email in R via outlook</a></p>
  
  <p>The code works until the attachment part, and the email even sends, just with no Attachment. It spits this error out:</p>
  
  <pre><code>&lt;checkErrorInfo&gt; 80020009 
  No support for InterfaceSupportsErrorInfo
  checkErrorInfo -2147352567
  Error: Exception occurred.
  </code></pre>
  
  <p>Any Ideas?</p>