Skip to content

Mail Templates

Target Audience: Users, Developers

Introduction

While transactional email can be sent from various integrations, the default method of sending emails from a Payway instance is from Payway itself. In this case, you can view your configured email templates directly from the PAP.

Where can I find my email templates?

In order to find your configured email templates, simply navigate to PAP => Control panel => Email templates.

How do I enable / disable a specific mail?

If you are interested in enabling or disabling specific mails from going out to your customers, you are in luck!

Simply navigate to the mail template that you would either like to enable or disable, and from the edit view, you can select whether the mail template should be enabled or disabled. While everything surrounding the event will still work exactly as you would expect, this toggle will simply stop (or start) the mail from going out to your customers.

Types of mail templates

ERB - Embedded Ruby

ERB Mail Templates are Payway's first templating language for mail templates. As such, they are read-only, but allow you as an administrator to view what your outgoing mail templates currently look like. If you are interested in making changes to your ERB mail templates, the mail template must first be converted into a PTL mail template.

For further assistance in converting your mail template to PTL, please contact our support and we will be glad to help you out.

PTL - Payway Templating Language

PTL Mail Templates are Payway's custom made templating language for mail templates, and allow you as an administrator to both view and edit the content's of the mail template. Aside from the static content of PTL mail templates, you will also have access to a wide range of variables, which can be used to personalise your outgoing mail, and provide dynamic content.

Example Template

<p>Thank you for your purchase, [ACCOUNT_NAME]!<p>

Output: Thank you for your purchase, Jane Doe!