0

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"))}"
4

1 に答える 1