send or save draft emails from R

send_email(
  email_message = "<p> This is an automatic message. </p> <p> OBI analytics team </p> ",
  email_to = "obianalysts@umich.edu",
  email_subject = "test",
  cc = NULL,
  save_or_send = "save"
)

Arguments

email_message

your email body; use html code for breaks and hyperlinks

email_to

a email address or a list of email addresses separated by ";"

email_subject

text

cc

a email address or a list of email addresses separated by ";"

save_or_send

default to "save", can be "save" or "send"

Value

a message in the console

Examples

if (FALSE) {
send_email(email_message = "<p> This is an automatic message. </p> <p> OBI analytics team </p>")
}