Create a parcel to email

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("[email protected]", "[email protected]") ) template <- " Dear {name}, This is a friendly email from me. XO, Lucy" parcel_create(df, sender_name = "Lucy", sender_email = "[email protected]", subject = "Happy email!", template = template)
#> To From Subject #> 1 Lucy <[email protected]> Lucy <[email protected]> Happy email! #> 2 Karthik <[email protected]> Lucy <[email protected]> Happy email! #> body #> 1 Dear Lucy,\n\nThis is a friendly email from me.\n\nXO,\nLucy #> 2 Dear Karthik,\n\nThis is a friendly email from me.\n\nXO,\nLucy