parcel_create: Create a parcel to email

View source: R/parcel_create.R

parcel_createR Documentation

Create a parcel to email

Description

Create a parcel to email

Usage

parcel_create(df, sender_name = NULL, sender_email = NULL, subject = NULL,
  bcc = NULL, template = NULL)

Arguments

df

data frame, information to be fed to the template (required)

sender_name

character, the sender's name (required)

sender_email

character, the sender's email (required)

subject

character, the email's subject

bcc

character, email address to bcc

template

character, template for email, using glue syntax (see example)

Value

data frame with information to email

Examples

df <- data.frame(
name = c("Lucy", "Karthik"),
email = c("example@email.com", "example@email.com")
)

template <- "
Dear {name},

This is a friendly email from me.

XO,
Lucy"

parcel_create(df,
            sender_name = "Lucy",
            sender_email = "lucydagostino@gmail.com",
            subject = "Happy email!",
            template = template)


ropenscilabs/notifier documentation built on May 20, 2022, 11:59 a.m.