send mail
library(mailR)
sender <- "R@RStudio"
recipients <- c("v.grabovets@gmail.com")
send.mail(
from = sender,
to = recipients,
subject = "Email from R",
body = "Email from R",
smtp = list(
host.name = "smtp.gmail.com",
port = 465,
user.name = "vengeful.c3po@gmail.com",
passwd = "19101988dtyl;aeK,",
ssl = TRUE
),
authenticate = TRUE,
send = TRUE
)