当我尝试sendmail
从sendmailR
R 中的包中使用时,我收到此错误:
Error in .smtp_submit_mail(server, port, headers, msg, verbose) : argument "msg" is missing, with no default
这是我要执行的代码:
library(sendmailR)
from <- "<some.address@gmail.com>"
to <- "<some.address@gmail.com>"
subject <- "this subject"
body <- "this text right here"
mailControl <- list(smtpServer = "ASPMX.L.GOOGLE.COM")
sendmail(from = from, to = to, subject = subject,
body = body, control = mailControl)
这与在线教程中的代码基本相同。