如何在程序结束的时候发送email

# MyEmail.R
library(mailR)
sender <- "[email protected]"
recipients <- c("[email protected]")
send.mail(from = sender,
          to = recipients,
          subject = "Program Done.",
          body = "My program is finished.",
          smtp = list(host.name = "smtp.qq.com", port = 587,
                      user.name =sender,
                      passwd = "cceaqupijmkxbffa", ssl = TRUE),
          authenticate = TRUE,
          send = TRUE)

猜你喜欢

转载自blog.csdn.net/weixin_43250801/article/details/128075797