I was under the impression that Postmark was strictly for
transactional e-mails, and shouldn't be used for bulk-mailing
operations. I'm not talking about spamming -- strictly stuff that
you've got permission for, but in the terms of service, under
"Appropriate Email Practices", it says:
Postmark may not be used to send mass emailing campaigns. This
includes, but is not limited to, Marketing Materials, Promotional
Information, Newsletters, etc. You may only send Transactional email
communication.
This new feature seems like it would contradict that. I can't really
think of a "transactional e-mail" that would be from one to many (can
somebody help me out?) I've always been nervous to use Postmark for
sending anything other than one-to-one sign up, or notification-type
messages because of that line in the TOS.
Jon
On Feb 17, 8:18 am, Alex Hillman <
dangerouslyawes...@gmail.com> wrote:
> Hey Everyone!
>
> Daniel and the team have been hard at work on some big features we'll be
> testing soon, but I managed to convince him to sneak in one goodie for
> everyone that made it to production in the last couple of days. Below are
> his feature release notes - if you see value in supporting batch API
> calling, we'd encourage you to take it for a spin.
>
> We'll add this to our public docs soon, but you get the first crack at it.
> Enjoy!
>
> *Description*
> The email batching feature allows a user to send multiple, individual
> Postmark mail requests through the API in a single, wrapped call.
>
> *Why It Is Needed*
> You may want to cut down on the time it takes to send batches of email; web
> requests have overhead, which can artificially throttle sending hundreds or
> thousands of messages at a time. By allowing you to send up to 500 messages
> in a single request, those messages skip the web request overhead tax, and
> are able to get through our queues faster.
>
> *How It Works*
>
> - Send an HTTP POST to /email/batch
>
> - The HTTP POST body should contain a JSON array containing up to 500
> multiple, well-formed Postmark messages:
>
> [
>
>
>
>
>
>
>
>
>
> > {
> > "From": "
supp...@yourapp.com",
> > "To": "
custo...@yourapp.com",
> > "Cc": null,
> > "Bcc": null,
> > "ReplyTo": null,
> > "Subject": "This is a test",
> > "HtmlBody": null,
> > "TextBody": "This is the first test message",
> > "Tag": null,
> > "Headers": [],
> > "Attachments": []
> > },
> > {
> > "From": "
supp...@yourapp.com",
> > "To": "
custo...@yourapp.com",
> > "Cc": null,
> > "Bcc": null,
> > "ReplyTo": null,
> > "Subject": "This is a test",
> > "HtmlBody": null,
> > "TextBody": "This is the second test message",
> > "Tag": null,
> > "Headers": [],
> > "Attachments": []
> > },
> > ]
>
> - The user will receive back a JSON array containing a response for each
> message in the order they were received
> - If the response is too large for the customer's preferences, GZIP
> support is possible if your client indicates it can accept it via the
> "Accept-Encoding" header
> - If a customer sends 500 messages, but runs out of credits after 300
> messages, the last 200 messages get dumped to the user's queue, and the user
> will receive 300 messages with statuses for those that were successfully
> sent
> - If a customer tries to send too many messages, they will receive HTTP
> response code 422 (Unprocessable Entity) similar to other user-sourced
> errors; a new ErrorCode 410 is used to distinguish when the batch size is
> too large, with a message indicating the problem
>
> *Known Limitations*
> *
> *
> We are currently limited by our configuration-induced 10MB request length
> limit, so the entire payload still has to respect this limit. A change to
> our configuration to lift this limit *is currently planned*. *This means
> that sending batches with attachments is likely not going to be successful
> for the customer unless batch size and attachment size are on the lower end.
> *
>
> Alex
>
wildbit.com