Skip to content

Instantly share code, notes, and snippets.

@bedantaguru
Created October 23, 2016 13:28
Show Gist options
  • Save bedantaguru/a5287151e091df8cde829f05fd588f57 to your computer and use it in GitHub Desktop.
Save bedantaguru/a5287151e091df8cde829f05fd588f57 to your computer and use it in GitHub Desktop.
Demo of Sending mail from R
library(mailR)
send.mail(from="<username of sender>@gmail.com",
to="<username of receiver>@gmail.com",
subject="Test Email",
body="PFA the desired document",
html=T,
smtp=list(host.name = "smtp.gmail.com",
port = 465,
user.name = "<username of sender>@gmail.com",
passwd = "<password>",
ssl = T),
authenticate=T,
attach.files="lib.R")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment