我正在尝试通过 R 中的脚本在 Outlook 中预订定期会议,我将每周批量运行该脚本。我们目前不允许预订定期会议,因为房间非常昂贵。我已经使用 RDCOMClient 发送自动电子邮件,所以我认为可能有一种方法可以使用该包来做到这一点。我已经浏览了 Stack Overflow 和文档,但还没有找到任何具体的内容。我想它看起来像这样:
OutApp <- COMCreate("Outlook.Application")
outMeeting = OutApp$CreateItem(0)
outMeeting[["To"]] = paste("[email protected]","[email protected]","[email protected]", sep = ";", collapse = NULL)
outMeeting[["start"]] = strptime(2017/04/28 13:30, "%Y/%m/%d %H:%M")
outMeeting[["end"]] = strptime(2017/04/28 14:30, "%Y/%m/%d %H:%M")
outMeeting[["subject"]] = "Weekly Meeting"
outMeeting[["body"]] = "Hi Team,
Attached is the weekly meeting agenda.
Thanks,
Person 3"
outMeeting$Send()
关于这是否以及如何工作的任何想法?
我知道这已经很老了,但我一直在尝试做同样的事情,我想通了。您需要执行以下操作:
OutApp <- COMCreate$("Outlook.Application")
OutMeeting <- OutApp$CreateItem(1)
OutMeeting[["Start"]] = "2019-02-22 08:00"
OutMeeting[["Subject"]] = "Weekly Meeting"
OutMeeting[["Body"]] = "Hi Team,
Attached is the weekly meeting agenda.
Thanks,
Person 3"
OutMeeting[["Duration"]] = "60"
# MeetingStatus is key to this - that's how it can be sent to others as an invite
OutMeeting[["MeetingStatus"]] = "1"
OutMeeting[["Recipients"]]$Add("[email protected]")
OutMeeting[["Recipients"]]$Add("[email protected]")
OutMeeting[["Recipients"]]$Add("[email protected]")
OutMeeting$Save()
OutMeeting$Send()
那应该能让你到达那里。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句