· 9 years ago · Mar 26, 2017, 03:22 AM
1Below is the code that I am using:
2
3library(mailR)
4sender <- "<*********@gmail.com>"
5recipients <- c("**********@gmail.com")
6send.mail(from = sender,
7 to = recipients,
8 subject = "Test",
9 body = "Test",
10 smtp = list(host.name = "smtp.gmail.com", port=465 ,
11 user.name = "**************@gmail.com",
12 passwd = "*******", ssl = TRUE),
13 authenticate = TRUE,
14 send = TRUE)
15
16Th error is very large but by going through, it basically says that it is not able to make a connection to the smtp server. Kindly help me in this issue as I am stuck at it for a day.