parcel_create: Create a parcel to email

Description Usage Arguments Value Examples

Description

Create a parcel to email

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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/ponyexpress documentation built on May 3, 2019, 11:49 p.m.