-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
63 lines (49 loc) · 1.74 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# postmarkr <img src="man/figures/logo.png" align="right" height="138" />
<!-- badges: start -->
[](https://www.repostatus.org/#wip)
[](https://github.com/andreranza/postmarkr/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
The goal of postmarkr is to interact with the [Postmark API](https://postmarkapp.com/developer), from R.
It is an independent, community-developed R package for the [Postmark](https://postmarkapp.com) email service (not created by or affiliated with Postmark).
## Installation
You can install the development version of postmarkr like so:
``` r
pak::pak("andreranza/postmarkr")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example, eval=FALSE}
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