Create engaging emails with your team in Dyspatch and quickly send them to your customers using Mailgun.
Use the Dyspatch editor to build and test your template. Collaborate with your team to approve it. You can now download your template using the Download/Export button in the editor.
Mailgun supports Handlebars for adding dynamic content to your template, so select "HTML/Handlebars" as your export language. Any DML variables and templating logic will be translated to Handlebars automatically.
Your download will be a zipped folder containing everything you need to get your template ready in Mailgun.
Unzip the folder downloaded from Dyspatch and open the HTML file so you can copy its contents and add the template content into Mailgun. You can open the HTML file in a text editor or open the file in a web browser and view the page source.
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.
You will be presented with the HTML source code and you can copy the HTML and add the content into Mailgun.
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 Mailgun.
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, click 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 mailgun.
In Mailgun choose the Sending section from the sidebar and select Templates. Click the Create Message Template button.
Select the Blank Template option to start your template import on a clean slate.
Enter a name and a description and then paste the HTML source code in to the Editor tab. Once your HTML is added in you can select the Preview tab to get another look at your template.
Click the Create button when you are finished and you are all set! You can now use this email template to start sending engaging email messages to your customers with Mailgun!