The goal of postmarkr is to interact with the Postmark API, from R.
It is an independent, community-developed R package for the Postmark email service (not created by or affiliated with Postmark).
You can install the development version of postmarkr like so:
pak::pak("andreranza/postmarkr")
This is a basic example which shows you how to solve a common problem:
library(postmarkr)
dat <- template_send_email_batch(
from = "[email protected]",
to = c( # potentially, a long vector of emails
"[email protected]",
"[email protected]"
),
id = 36620093L,
template_model = list(
template_var_01 = "nutrivetpet",
template_var_02 = "www.nutrivetpet.com"
),
msg_stream = "broadcast",
tag = "test",
track_opens = TRUE
)
- Send batch emails with template
- Get email delivery logs
- List email templates
- Track email delivery statistics