相关疑难解决方法(0)

你如何从R发送电子邮件

我想发送来自R的电子邮件.这是我到目前为止所拥有的:

library(sendmailR)


from <- "eamil@example.com"
to <- "email2@example.com"
subject <- "Performance Result"
body <- "This is the result of the test:"                     
mailControl=list(smtpServer="snmpt server address")

sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
Run Code Online (Sandbox Code Playgroud)

当我执行此脚本时,我的R会话挂起.有什么想法可能会发生什么?

r

57
推荐指数
5
解决办法
7万
查看次数

标签 统计

r ×1