parcel_send: Sends email from notifier object

View source: R/parcel_send.R

parcel_sendR Documentation

Sends email from notifier object

Description

Sends email from notifier object

Usage

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

# First let's generate a sample output from note_create

sample_email <-
data.frame(To = c("N. Bluth <lucille.bluth@gmail.com>", "G.O.B. <gob@imoscardotcom.com>"),
From = c("Karthik Ram <karthik.ram@gmail.com>"),
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 11, 2022, 9:34 p.m.