create_new_ticket_correspondence: Generalized version of the create_ticket and...

Description Usage Arguments Value Examples

View source: R/RT_functions.R

Description

For sending reminder emails or any other mass customized email correspondences. Similar to a mail merge for sending mass emails to RT.

Usage

1
create_new_ticket_correspondence(db, template, test = TRUE)

Arguments

db

(dataframe) a database containing the name and email for follow up with the following column named: first_name, id, title

template

(character) an email template that will fill in the name and award title at each %s (see example below)

test

(logical) sends a test email (replaces all the emails with a test email address)

Value

dataframe

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
db <- import_awards_db(file.path(system.file('example_db.csv', package = 'awardsBot')))
email_text <-  "Dear %s,  \n We are writing to you today about your NSF Arctic Sciences award %s %s. 
                \n The Arctic Data Center Support Team"
create_new_ticket_correspondence(db = db, 
                                email_text, 
                                test = TRUE)

## End(Not run)

NCEAS/awards-bot documentation built on Sept. 6, 2021, 1:47 a.m.