Exporting a Dyspatch Template to Postmark

Build beautiful emails quickly with Dyspatch and send them to your customers using the Postmark transactional email service.

Downloading Your Email Template

Once your email has been reviewed and approved by your team's stakeholder, you can now export your template using the Download/Export button.

You will need to select the HTML/Handlebars option to be compatible with Postmark's templating system.

Selecting the download button and exporting to handlebars for Postmark

A zipped file will be downloaded onto your system with the HTML, plain text content, metadata, and localizations (if applicable).

Postmark's templating language, Mustachio, is similar to handlebars but does not support conditional logic. Make sure to test your template before sending.

Getting the HTML Source Code

Postmark requires you to copy and paste HTML directly into their system. To obtain the HTML source code for your email, you can open the HTML file in a text editor or open the file in a web browser and view the page source.

Web Browser

Most web browsers will have a "View Page Source" option. The following screenshots will outline steps for Google Chrome.

Open the HTML file in a web browser, and right click the page to open a drop down menu. Select the View Page Source option.

Right click to dropdown menu options. Select the View Page Source option

You will be presented with the HTML source code and you can copy the HTML and add the content into Postmark.

Showing
the source code of the HTML

Text Editor

Windows

Notepad comes pre-installed with Windows operating systems, so you should be able to search for Notepad and open the HTML file. Once opened, you can copy the HTML and add the content into Postmark.

MacOS

TextEdit comes pre-installed with MacOS operating systems, so you should be able to search for TextEdit and open the HTML file. Note that you may need to adjust your preferences to allow HTML files to be opened in code format.

In the preferences settings, select the "Open and Save" tab. Make sure the "Display HTML files as HTML code instead of formatted text" is enabled.

Once you have the HTML, you can copy the HTML and add the content into Postmark.

Adding the Template to Postmark

After you have the HTML code, go to the Postmark server you're sending from and select "Templates".

Postmark's server menu

Then select Add Template to go to the template creation screen. From there, select the Code Your Own option. Make sure to select Don't use a layout on the next screen. Dyspatch templates come with everything you need to start sending.

Now select the Edit tab and copy and paste the HTML from the previous section into the editor.

Postmark's HTML editor

Now save your template. That's it! You can start sending this template through your Postmark account. Refer to the section below if you can't save the template.

Note that Postmark does not allow link tags in their templates.

Link tag
warning

If you see the warning above, all you need to do is look for <link ... /> in your template code, remove it, and save.

search icon

Didn't find what you're looking for?

Ask our support team, we're here to help!

Contact Support