Created
October 23, 2016 13:28
-
-
Save bedantaguru/a5287151e091df8cde829f05fd588f57 to your computer and use it in GitHub Desktop.
Demo of Sending mail from R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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