2

Rからメールを送信するために使用sendmailRしています.複数のファイルを添付できるようにするために何を使用する必要があるか知っている人はいますか?

これは私が単一の添付ファイルに使用しているコードですが、複数のファイルに合わせて調整する方法がわかりません:

library(sendmailR)

from <- "......org"
to <- c("Pegah@...net")
subject <- "Daily Report"
body <- "Attached is today's Daily Report"

mailControl = list(smtpServer=".....net")
attachmentPath <- paste0("/Rate and Lab Counts ", Sys.Date(), ".png")
attachmentObject <- mime_part(x=attachmentPath, name=attachmentName)
bodyWithAttachment <- list(body,attachmentObject)

sendmail(from=from, to=to, subject=subject, msg=bodyWithAttachment, control=mailControl)
4

1 に答える 1