Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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