substituteEmailTemplate: Converts the body of email template into the email of...

Description Usage Arguments Value Examples

View source: R/substituteEmailTemplate.R

Description

Converts the body of email template into the email of interest, to a single person, etc.

Usage

1
substituteEmailTemplate(tBody, emailData, nl)

Arguments

tBody

The body of the email. This must be a character vector, but could be text or HTML.

emailData

A data.frame with the specifics that will replace the generic fields in the email. Must contain, First.Name, First.Date, and School.Name.

nl

The new-line character(s) for the tBody that specify TWO line breaks, e.g., "\r\n\r\n" or "<br><br>".

Value

The body of the email for a specific person and program and etc.

Examples

1
2
tBody <- makeEmailBodySubstitutions(txtBody, emailData[i,], "\\r\\n\\r\\n")
hBody <- makeEmailBodySubstitutions(htmlBody, emailData[i,], "<br><br>")

BKoblinger/writersexchanger documentation built on Dec. 2, 2018, 12:18 p.m.