Skip to contents

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).

Installation

You can install the development version of postmarkr like so:

pak::pak("andreranza/postmarkr")

Example

This is a basic example which shows you how to solve a common problem:

library(postmarkr)
dat <- template_send_email_batch(
  from = "xyz@mail.com",
  to = c( # potentially, a long vector of emails
    "abcd@mail.com",
    "efgh@mail.com"
  ),
  id = 36620093L,
  template_model = list(
    template_var_01 = "nutrivetpet",
    template_var_02 = "www.nutrivetpet.com"
  ),
  msg_stream = "broadcast",
  tag = "test",
  track_opens = TRUE
)

Features

  • Send batch emails with template
  • Get email delivery logs
  • List email templates
  • Track email delivery statistics