Send a order confirmation email with Postmark using webhooks

Last updated: 30 Apr 2019

In this example we will clone the repository that handles the incoming webhook to send emails via Postmark and learn how to configure it to run locally.

Running locally

When using this example locally, it's recommended you use a service ngrok to tunnel your dev environment to the outside world.

Once you have the repo running locally, you'll want to add the integration via the Moltin Dashboard. The URL will be the one provided by ngrok.

1. Download the example

Clone the repository:

git clone

Install the dependencies with Yarn

cd integration-examples/order-confirmation-email

2. Configure Postmark

In this example we will use Postmark to send our emails. They also take care of hosting the email template.

Once you've signed up to Postmark, create a new server and add a new template with the following code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style type="text/css"></style>
      Thank you for your order . The total for your order was