Я пытаюсь запустить sendmailR в Windows со следующим кодом:
## Not run:
from <- "<[email protected]>" # sprintf("<[email protected]\\%s>", Sys.info()[4])
to <- "<[email protected]>"
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) :
smtp.gmail.com [email protected]:statisfun:25 cannot be opened
Ответ здесь дает решение для Linux, и я был бы признателен за совет для пользователей Windows.
Спасибо.