SendOutlookMail.RdSending emails in R can be required in some reporting tasks. As we already have RDCOMClient available we wrap the send code in a function.
SendOutlookMail(to, cc = NULL, bcc = NULL, subject, body, attachment = NULL)Nothing is returned
if (FALSE) { # \dontrun{
SendOutlookMail(to=c("[email protected]", "[email protected]"), subject = "Some Info",
body = "Hi all\r Find the files attached\r Regards, Andri",
attachment = c("C:/temp/fileA.txt",
"C:/temp/fileB.txt"))
} # }