2013-11-29 52 views
1

我使用sendmailR自动发送电子邮件。我想抄送一个地址作为记录。我使用的代码是:sendmailR添加CC地址

>from <- "<[email protected]>" 

>to <- '[email protected]' 

>header<-list(Cc=c("<[email protected]>")) 

>subject <- "test1" 

>body <- 'test1'; 

>mailControl=list(smtpServer="mail.sample.com.cn") 

>sendmail(from=from,to=to,subject=subject,msg=body,headers=header,control=mailControl) 

cc部分从来没有工作,我不明白为什么。我已经提到这个帖子:Is it possible to cc recipients using sendmail in R?,但似乎一切都应该是正确的。

任何人都可以帮助我吗?

谢谢!

+1

你是不是在你的'header' – sds

+0

提供任何'cc'地址为什么?你能告诉我一个例子吗? – user2854008

+0

您需要从电子邮件地址中删除括号。 – sds

回答