I could not sent mail from Rstudio server console.
please suggest me a way to send mail.
thanks
veepsirtt
---------------------------------------------------------------------------------------------------------
> source('~/.active-rstudio-document', echo=TRUE)
> library(sendmailR)
> from <- "<veep...@gmail.com>"
> to <- "<veep...@gmail.com>"
> subject <- "subject text"
> msg <- "message"
> sendmail(from, to, subject, msg)
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) :
localhost:25 cannot be opened
>
> sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] tcltk grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] rJython_0.0-4 rjson_0.2.14 rJava_0.9-3 sendmailR_1.1-2 base64enc_0.1-1 Rmail_1.1
[7] caTools_1.17 mail_1.0 plyr_1.7.1 scales_0.2.3 ggplot2_0.9.3.1 RCurl_1.95-4.1
[13] bitops_1.0-4.1 XML_3.98-1.1
loaded via a namespace (and not attached):
[1] colorspace_1.2-0 dichromat_1.2-4 digest_0.5.2 gtable_0.1.1 labeling_0.1
[6] MASS_7.3-23 munsell_0.4 proto_0.3-9.2 RColorBrewer_1.0-5 reshape2_1.2.1
[11] stringr_0.6.1 tools_2.15.3