【发布时间】:2020-02-11 10:36:16
【问题描述】:
直到今天,我一直使用 RDCOM 通过 rstudio 成功发送邮件。我的 rstudio 版本是 3.5.1,我使用此链接安装 RDCOM
install.packages("RDCOMClient", repos = "http://www.omegahat.net/R")
my code is as follow
OutApp <- COMCreate("Outlook.Application")
outMail = OutApp$CreateItem(0)
outMail[["To"]] = "username@outlook.com"
outMail[["subject"]] = "Test Subject"
outMail[["body"]] = "Body of email"
outMail[["Attachments"]]$Add("C:\\Users\\destination\\file.csv")
outMail$Send()
今天我收到以下错误
80020009 不支持 InterfaceSupportsErrorInfo checkErrorInfo -2147352567 错误:发生异常。
已经花了几个小时试图修复它,但到目前为止我无法修复它。在添加附件部分失败
【问题讨论】:
标签: rstudio rdcomclient