What's the best way to send bulk emails?

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

1 Like

Thanks. So there’s no difference in the API call to postmark, besides using the broadcast stream?

You can’t just attach a list of emails in the to field, I’m pretty sure

Good catch, you are talking to ChatGPT responses :joy:

4 Likes

Welp, I’m calling it a night and going to bed. Maybe when I wake up I’ll have an answer to my question :sweat_smile:

1 Like

There is a Batch Send endpoint Email API | Postmark Developer Documentation meant for up to 500 messages per API request.

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

2 Likes

Actually @digitalproject271 and @anon79941647 are same

Yes he is doing to attract clients

1 Like

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.

3 Likes