使用R发送邮件:mailR 发表于 2016-12-06 | 分类于 R 安装1install.packages("mailR") 使用12345678910111213141516171819202122library(mailR)# 发件人邮箱sender <- "sender@abc.com"# 收件人邮箱recipients <- c("recipients1@abc.com","recipients2@abc.com")send.mail(from = sender, to = recipients, # 邮件标题 subject="Subject of the email", # 邮件内容 body = "Body of the email", # smtp信息 smtp = list( host.name = "...com.cn", port = 25, user.name = "sender@abc.com", passwd = "...", ssl = FALSE ), authenticate = TRUE, send = TRUE ) That’s all.Happy writing!