我有在r上发送电子邮件的标准代码。 我想在周一至周四将其发送给一个人,然后在星期五将其发送给另一个人。这是对以下内容的调整吗?
`library(mailR)`
`send.mail(from = "sender@gmail.com",
to = c("Recipient 1 <recipient1@gmail.com>", "recipient2@gmail.com"),
cc = c("CC Recipient <cc.recipient@gmail.com>"),
subject = "Subject of the email",
body = "Body of the email",
smtp = list(host.name = "aspmx.l.google.com", port = 25),
authenticate = FALSE,
send = TRUE)`