我正在尝试通过R发送邮件并遇到了一些问题。
library(sendmailR)
from <- sprintf("<sendmailR@\\%s>", Sys.info()[4])
to <- "<myemail@gmail.com>"
subject <- "Hello from R"
body <- list("It works!", mime_part(iris))
sendmail(from, to, subject, body,
control=list(smtpServer="ASPMX.L.GOOGLE.COM"))
Error in socketConnection(host = server, port = port, blocking = TRUE) :
cannot open the connection
In addition: Warning message:
In socketConnection(host = server, port = port, blocking = TRUE) :
ASPMX.L.GOOGLE.COM:25 cannot be opened
我的操作系统是Windows 7专业版。 Java版本是:java版“1.7.0_25”
非常感谢你!
Sending an email from R using the sendmailR package 链接是关于同样的问题,但在Linux系统上。
有人可以在Windows系统上如此善意地启发我吗?
再次感谢你!