Displaying 1 result from an estimated 1 matches for "workingdirectorypath".
2013 Feb 20
1
Sending Email from R
...sted in figuring out how to include it as part of the body of the email.
Does anybody have experience on how to do this?
#http://stackoverflow.com/questions/2885660/how-to-send-email-with-attachment-from-r-in-windows
#?sendmailR::sendmail
library(sendmailR)
#set working directory
setwd("C:/workingdirectorypath")
#####send plain email
from <- "you@account.com"
to <- "recipient@account.com"
subject <- "Email Subject"
body <- "Email body."
mailControl=list(smtpServer="serverinfo")
sendmail(from=from,to=to,subject=subject,msg=body,control=...