outlookSend: Send email from outlook

Description Usage Arguments See Also Examples

View source: R/email.R

Description

Uses VBA script to send emails from Outlook. Attach files or insert Rmarkdown generated html files in the body of the email All credit goes to the solution from https://stackoverflow.com/questions/26811679/sending-email-in-r-via-outlook

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
outlookSend(
  To,
  Subject = "",
  CC = NULL,
  BCC = NULL,
  HTMLBodyFile = NULL,
  HTMLBody = NULL,
  Body = "",
  Attachments = NULL,
  DeferredDeliveryTime = NULL,
  OriginatorDeliveryReportRequested = NULL,
  ReadReceiptRequested = NULL,
  FlagRequest = NULL,
  Importance = NULL,
  Sensitivity = NULL,
  SentOnBehalfOfName = NULL
)

Arguments

To

Receiver

See Also

https://stackoverflow.com/questions/26811679/sending-email-in-r-via-outlook for the original post

Examples

1
2
3
outlookSend(To=c("xyz@gmail.com","abc@gmail.com")
,Subject="Daily Ticketed Intakes (Revenue)"
,HTMLBodyFile="filename.html")

amit-agni/cutlery documentation built on Dec. 31, 2019, 2:09 p.m.