我正在尝试使用 sendmailR 在 R 中附加一个文件。
这可能吗?
不包括 attach.files 行发送电子邮件没有问题。
to <- "<me@localhost>"
subject <- "test attachment"
body <- list("test")
attach.files = c("test.jpeg"),
sendmail(from, to, subject, body,
control=list(smtpServer="192.168.0.51"))}
Error: unexpected '}' in:
"sendmail(from, to, subject, body,
control=list(smtpServer="192.168.0.51"))}"