2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
14
Task/Send-email/R/send-email.r
Normal file
14
Task/Send-email/R/send-email.r
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
library(RDCOMClient)
|
||||
|
||||
send.mail <- function(to, title, body) {
|
||||
olMailItem <- 0
|
||||
ol <- COMCreate("Outlook.Application")
|
||||
msg <- ol$CreateItem(olMailItem)
|
||||
msg[["To"]] <- to
|
||||
msg[["Subject"]] <- title
|
||||
msg[["Body"]] <- body
|
||||
msg$Send()
|
||||
ol$Quit()
|
||||
}
|
||||
|
||||
send.mail("somebody@somewhere", "Title", "Hello")
|
||||
Loading…
Add table
Add a link
Reference in a new issue