View source: R/parcel_create.R
| parcel_create | R Documentation | 
Create a parcel to email
parcel_create(df, sender_name = NULL, sender_email = NULL, subject = NULL, bcc = NULL, template = NULL)
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)  | 
data frame with information to email
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.