template_id: template id

View source: R/dynamic-templates.R

template_idR Documentation

template id

Description

Create dynamic templates at https://mc.sendgrid.com/dynamic-templates

Usage

template_id(sg_mail, template_id, force = FALSE)

Arguments

sg_mail

(required) mail object from package

template_id

(required) template_id start "d-" and 32-length only digit and lower case alphabet like "d-4ad23ad40a0e47d0a0232b85f24ca5c2"

force

pass template_id validation. default is FALSE.

Value

sg_mail class with template id.

Examples


mail()%>%
  template_id("d-4ad23ad40a0e47d0a0232b85f24ca5c2")

mail() %>%
  template_id("foo", force = TRUE)

sendgridr documentation built on Nov. 10, 2022, 5:15 p.m.