我正在使用套餐' RDCOMClient'发送电子邮件到Outlook
这里的代码
sendEmail = function(To=To, Subject=Subject, msgBody=msgBody,file="") {
OutApp=COMCreate("Outlook.Application")
OutMail=OutApp$CreateItem(0)
OutMail[["To"]]=To
OutMail[["Subject"]]=Subject
OutMail[["Body"]]=msgBody
if(file!="") OutMail[["Attachments"]]$Add(file)
OutMail$Send()
}
它可以发送电子邮件,但我无法用中文设置主题。
OutMail[["Subject"]]<-Subject
有谁知道如何让OutMail [[&#34; Subject&#34;]]识别utf-8中的主题?