parcel_send: Sends email from notifier object

Description Usage Arguments Examples

View source: R/parcel_send.R

Description

Sends email from notifier object

Usage

1
2
parcel_send(email_data, type = "text", secret = NULL,
  sent = "sent-emails.rds")

Arguments

email_data

tibble outputted from note_create

type

Type of email. Either text or html.

secret

path to secret.json file

sent

Path for sent emails to be saved. You will need this later as a log of sent emails.

Examples

1
2
3
4
5
6
7
8
9
# First let's generate a sample output from note_create

sample_email <-
data.frame(To = c("N. Bluth <[email protected]>", "G.O.B. <[email protected]>"),
From = c("Karthik Ram <[email protected]>"),
Subject = "This is the subject",
Body = "This is the message")
# Now send emails with
## Not run: parcel_send(sample_email, secret)

ropenscilabs/ponyexpress documentation built on May 28, 2017, 12:54 a.m.