less than a minute read • Updated 2 hours ago
Set up a custom email receipt template
How to switch to a custom text or HTML email receipt template so you can start customizing it.
To customize an email receipt beyond simple language changes, you’ll first need to switch to a custom template.
Steps
Notes
If you’re only changing displayed text — like the message at the top or section labels — you don’t need a custom template for that. See Customize the message in the email receipt.
Email formatting is far more limited than modern web CSS. CampaignMonitor’s CSS resources are a good reference for what’s supported in HTML email.
Copy the HTML template into a text editor with syntax highlighting — ideally one with Twig support — to make it easier to work with.
If you’re bringing in a completely different template from another service, you’ll need to include the Twig logic that handles the different email types and outputs the customer’s information. See the Email receipt Twig variables reference.
The default HTML template is available on GitHub if you need to reference it.
The email template handles several email types beyond a normal transaction receipt — including subscription reminders and cancellations — and its default styles are inlined in the HTML, so it can be more complex to customize than other templates.