Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
library(mailR)
sender <- "hello@mail.com"
recipient <- "m.p.kosinski@gmail.com"
send.mail(from = sender,
to = recipient,
subject = "Subject",
body = "Hello World!",
smtp = list(host.name = "smtp.gmail.com", port = 465,
user.name = "hello@gmail.com",
passwd = pwd,
ssl = TRUE),
authenticate = TRUE,
send = TRUE)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment