I’ve been using PostMark with the API connector to send my transactional emails, which is super easy. But in the next few days I need to send a batch email to about 200 users with a product announcement.
It doesn’t look as easy as attaching those emails as a list to a single Postmark API call. Can I just use a API workflow on a list? Any suggestions? I also have SendGrid as an option
You would just leave the the API call body with a single <body>parameter, then in your workflow build the whole API body like this:
[Search for Users:format as text] (according to the docs you need to wrap it in brackets)
{
"From": "sender@example.com",
"To": "This User's email",
"Subject": Arbitrary text:format as JSON safe, (inside put the email subject)
"TextBody": Arbitrary text:format as JSON safe, (inside put the text body)
"HtmlBody": Arbitrary text:format as JSON safe, (inside put the HTML body)
"MessageStream": "outbound"
}
With the delimiter , [newline]
May need some trial and error to make the whole thing not break JSON formatting. Like all the
There’s also a new early access (in beta) bulk endpoint meant for broadcast stream messages where you can pass an unlimited number of recipients (as long as your payload is under 50 MB .
Postmark will then optimize the sending speed for you and you can use another endpoint to check on the status of the bulk delivery.