All the email notifications sent from your Zendesk, including ticket notifications and Help Center article notifications, are controlled by email templates. The templates are formatted for both HTML and plain text emails. Both formats are included in each email. The version end-users see depends on the preference settings of their email clients.
You can customize the HTML template to match your branding by making a few simple style changes. You can also edit the information in the text versions of your emails.
Related articles:
Editing the email templates
You can customize the look and feel of email notifications sent to your customers. Notifications have an HTML template and a plain text template.
If you are on an Enterprise plan, you can modify and test email changes in a sandbox before deploying them publicly (see Testing changes in your sandbox).
- In Admin Center, click
Channels in the sidebar, then select Talk and email > Email.
- In the Email templates section, click Show user profile photos in emails
to display user profiles in emails.
Not all email clients display images by default.
- Modify the HTML template as needed.
- Modify the text template as needed.
- If you want to start over with the default version, click Revert to default below either template.
- Click Save at the bottom of the page.
The email templates are updated.
- Show user profile photos
- Add or remove ticket links
- Adding and removing the delimiter email notifications
- Use Liquid markupNote: While Liquid markup is supported in macros, triggers, and automations for ticket notifications, it is not supported for Help Center article notifications, such as email notifications sent to followers. Instead of using Liquid to change the appearance of email notifications, you can follow the steps for using the email template with multiple brands.
Editing the HTML template
You can change the appearance of HTML emails by editing the HTML and CSS in the HTML template.
This section covers the following topics:
Changing the appearance of HTML emails
The HTML template consists of DIV tags and system placeholders.
The placeholders supply most of the content to the email:
{{content}}
is required and should not be deleted{{delimiter}}
is only required if you are using the email delimiter in notifications{{styles}}
and{{attributes}}
are for future use and are sometimes used by the system to inject styles and attributes to support Right-to-Left locales{{footer}}
is optional
The DIV tags apply CSS styles to the content. By adding or modifying CSS styles, you can change the look and feel of the email as a whole, the delimiter, or the footer.
If you are changing text color, use sufficient color contrast for accessibility. Follow the Web Content Accessibility Guidelines (WCAG) recommendations and utilize tools like WebAIM color contrast checker to check the contrast ratio between the text and the background.
- In Admin Center, click
Channels in the sidebar, then select Talk and email > Email.
- In the Email templates section, modify the HTML template as needed.
If you want to use any of the standard template placeholders, start typing the placeholder name, then choose from the available options that appear.
- Click Save.
For example, here's how to change the font color of the footer to teal:
... <div style=" color: #009966; margin: 10px 0 14px 0; padding-top: 10px; border-top: 1px solid #eeeeee;" > {{footer}}{{footer_link}} </div> ...
The font color is set to teal's hexadecimal value with the following style declaration:
color: #009966;
a:hover {color:#FF00FF;}
.
Unfortunately, CSS pseudo classes are not supported in inline CSS, and major email
clients like Gmail strip out any CSS that is not inline. To add an image such as a company logo to the template, insert an IMG tag that references the image. Example:
<img src="http://YOURWEBSITE.com/logo.png"/>
<a href="http://YOURACCOUNT.zendesk.com"><img src="http://YOURWEBSITE.com/logo.png"></a>
- CSS portal on the Mozilla Developer Network
- Help Center CSS Cookbook
Guidelines for customizing HTML emails
You can customize the HTML template extensively, but keep in mind that Zendesk does not provide support for custom coding. If your account was created on or after June 15, 2022, the template is HTML5 compliant. To learn more about supported HTML5 tags, see the HTML5 Elements Reference on www.w3docs.com.
Designing HTML emails is challenging because of how HTML and CSS are rendered in different web browsers and email clients. Certain types of formatting can even be interpreted as spam.
- Do not use CSS3 style declarations. Stick to CSS1 or 2.
- Do not add more DIV sections.
- Keep text formatting to a minimum. Lots of bold text can trigger spam filters.
- Don't add many images (another trigger for spam filters), and downscale the images you use.
- Use the ALT tag on all images. The tag displays a description of the image before users allow the images to be displayed.
- If you know the width and height of the image, define it. This forces the email client to reserve the image space in the email layout before downloading the images.
- Background images are not supported in all email clients, so don't rely on them for information or functional design.
- Don't link to images in a closed Zendesk account. If the intended recipient is not a registered and signed-in user, the images will be broken.
Editing the text template
The text email template is used when the user elects not to read email messages in HTML format. The template consists of two system placeholders:
{{content}} {{footer}}
The {{content}}
placeholder inserts the text delimiter, the ticket title,
the text that is generated from business rules (triggers, automations, or macros), and the
ticket comments. The {{footer}}
placeholder is optional. You can remove it
if you want. For more information, see Understanding the system placeholders.
{{delimiter}}
placeholder is not required in
the text template. The {{content}}
placeholder contains the delimiter
text.If you'd like to add a line to your emails, add it to the template.
Thanks for contacting MondoCam Support! {{content}} {{footer}}
To edit the text template
- In Admin Center, click
Channels in the sidebar, then select Talk and email > Email.
- Scroll down to the Email templates section.
- Modify the text template as needed.
- Click Save at the bottom of the page.
Understanding the system placeholders
Most of the content in notification emails is generated dynamically by the Zendesk system.
The dynamically generated content is represented by placeholders in the email templates. The
placeholders are enclosed in double curly quotes, such as {{footer}}
.
The placeholders insert delimiter text, the email contents, and a footer.
{{delimiter}}
- Displays the line "##- Please type your reply above this line -##". The delimiter is used by the system to separate old content from new. When a person replies to an email, the new content in the reply is added to the ticket as a comment. This placeholder is required in the HTML template if you are using the email delimiter. See Customizing the delimiter text in emails.
{{content}}
- Displays the email content, which can include ticket comments and user profile photos. The content is defined in the trigger, automation, or anything else that sends email from your account. See Creating and managing triggers for ticket updates and notifications.
{{quoted_content}}
- Optional. Displays the message history. The quoted content is usually collapsed in the user's email application, but the user can expand it. In Gmail, for example, the user clicks the ellipsis (…). See Understanding simplified email threading.
{{footer}}
- Optional. Displays the line "This email is a service from YourZendeskName." It also displays ticket properties, such as status and requester, in emails sent to agents. The properties are not displayed in emails sent to end users.
{{footer_link}}
- Optional. Displays the line "Delivered by Zendesk." The word Zendesk is a link to https://www.zendesk.com.
{{styles}}
- Optional. For future use. Currently, the system uses this placeholder to inject styles when it detects that the locale is a Right-To-Left locale.
{{attributes}}
- Optional. For future use. Currently, the system uses this placeholder to inject attributes when it detects that the locale is Right-To-Left.
31 Comments
Hi @...,
Are you referring to previewing a ticket in a view? If so, you can hover over the ticket for a short preview of the contents of the ticket. Formatting applied to ticket comments does not appear in the preview. Instead, preview text appears unformatted, or as Markdown syntax (if applicable).
Additionally, here is another post in the Community that will hopefully help address your question: Can you have a ticket preview view?
@... I was looking for a way to preview the HTML template email found in Support Settings-->Channel-->Email-->Email Templates. Is there no way to make sure its all formatted correctly?
Thank you for the clarification, Greg Williams You should be able to preview the HTML code in the Email templates section of your Email settings (see my screenshot below). The next step would be to send a test email to preview the format of the template. I believe I understand your request for a preview option within your settings and the ability to skip sending a test email. That suggestion would be great feedback for our Product Team if you have a moment to post in the Community Feedback Section!
Lastly, please note that the option to edit email templates is not enabled by default for trials and might not be enabled for some accounts. To enable editing, contact Zendesk Customer Support with your subdomain.
The section head says Email templates (plural), but I only see one template. Where are the others? For example I would like to have much more branding in the account email invitations than in the normal ticket emails. Where is that template kept?
Hey Bill,
Apologies for the confusion there! Only one template is available on each account so I will pass this feedback along to our documentation team to have this corrected. Thanks for bringing this to our attention!
Hi,
I saw that someone else asked the question about being able to use dynamic content in the email template. I did not see a response to that. Is that possible? Are there plans to support that in a near future? One of my objectives is to use the customer language in the "alt text" on the image in the email header. How would you go about that?
Thanks in advance!
Hi Daniel,
As of the moment, you can change the appearance of the outbound emails by editing the HTML and CSS in the HTML template. Unfortunately, there is no native way to use the dynamic content, but we understand your need for that functionality, so we are marking this conversation as Product Feedback. We truly value customer feedback and your voice and votes in the product feedback topics in the community help influence future Zendesk functionality.
All the best
Dear Zendesk experts,
I expanded our template's CSS style definition and ran into difficulties.
Basically I need to use the CSS "element>element" selector. However, it appears as if Zendesk sanitizes my input when I click "Save", and converts e.g. "div > table " to its html entity form "div > table", which is invalid CSS. Therefore, the selector does not work.
I could not find a workaround. Do you have any hints how to make this work? Thanks!
Following is a minimal example where I added a CSS definition that should work but does not into the example code provided in the section "To edit the styles in the template" above.
I'd like to add social media icons to the email template. I see we can do that if we have Brands enabled. Is it possible with no brands? I tried using the font awesome links: <i class="fab fa-linkedin-in"></i>, and I have font awesome in my Guide, but it doesn't work here.
Any ideas?
Email template customization is available under Support Team plan and up, you do not need to have multibrands to use the feature as long as it is part of your plan. To have it enabled, you may initiate a conversation with us
Hi there. I have been looking to customize our email template and have come up against one thing that is driving me crazy. It appears Zendesk automatically appends some hidden white text to the bottom of each email showing the domain and ticket ID. Now when i have changed my template to include a shaded colour background to match our branding that text is now showing on the bottom of every email (because the text is white). Can someone advise if this text is removable or how I could change the colour of this text?
Hi Adam!

By any chance are you referring to the footer of your email? Or are you referring to the ticket encoded id which looks like this?
Hi Dainne Lucena!
Yes its the ticket encoded ID, because I've set up a shaded coloured background, that appears at the bottom in white text (by default of course its hidden because the standard template is with no background and the text is white). I've tried every way I can think of to try and style this to be a different colour but cannot figure it out, if it is even possible.
Thanks!
Adam
is there an easy way just to make a few words BOLD in the standard email response so they stand out more -
In Admin > Channels > Email and under the Email HTML template section we need to include a couple of lines of code to target text that is considered 'important'. This piece of code should replace your current
<style> ... </style>
section of the HTML template.I have attached an example screenshot from my test account below where I have used this modification to make my encoded ID section pink to highlight it.
You can use the appropriate hex code to set this back to white (which would be #FFFFFF) if you would like to. If you're not comfortable modifying the HTML in your account, I would suggest passing this information on to a developer, if at all possible.
Is it possible to include the correct links (with host mapping) to different help centers depending on the brand a ticket is being created in?
The situation: we would love to have a help center link in the email template (just a simple banner with the holding logo left which is generic for all brands and help center link for the specific help center corresponding to the sub-brands on the right).
Hi Dainne Lucena!
Thanks for the code, i tried it and what is strange is that it correctly changed the text for the email that went to the agent, but not to the customer - which doesn't make sense to me although I have noticed that the code is different on the emails (the agent one includes additional information such as the subdomain etc whereas the customer one does not. I'll keep digging unless you can suggest anything else?
Hi Lucas Case,
I think the only way to do something like that would be to do it at the Trigger level, since there's only one email template per account. Here's some information that should help: Using the email template with multiple brands
Does Zendesk "mask" the original <img src> used once it's added to the theme? We have 2 .png files in the header of our email templates (one on the left, one on the right) and the image URLs are local to Zendesk:
We created these templates years ago and I'm trying to find links to the original files. I thought, at first, that the URL was referencing the "assets" folder in the theme of one of our Help Center brands, but the files haven't been uploaded there.
Hi, I'm using the Zendesk API to add a comment to the ticket. The comment is then sent as an email.
When I create the comment I pass the text as html_body but I have a bad result. How do I remove the highlighted lines in the image?
Is it possible to remove the encoded ID completely from the footer? Thank you Dainne Lucena.
- Christian
As it turns out, encoded ID cannot be removed as it is necessary to ensure that all ticket replies are threaded properly.
Hello Zendesk Team,


I am facing an issue with my email, I have designed the email template but in the end, there is an encoded ticket is showing on the MacBook browser, working fine in windows, can you please tell me how can I change the colour text, First I had grey background so that encoded text showing in white colours then I change the background to white, now its showing in black colour, Please team is there any solution for this issue or how can I am tired with this issue
I'd recommend taking a look at this thread: Customizing your templates for email notifications
I hope this helps!
Hi,
Is there any way to get the defined Email template from Zendesk settings via Zendesk Rest API?
I'm afraid that there is no way to get the defined email template via our REST API, I'm sorry.
You can find all email related properties used in our API in our documentation.
Can we add Javascript to the email template?
As of the moment, Zendesk do not provide support for third-party technologies such as JavaScript, jQuery, or CSS.
can we create and add our own placeholder or use placeholders such as {{ticket.brand}}
Hi Abdelhameed,
The placeholders in an email template are system defaults, and it's not possible to create a new one or edit the contents of an existing one. There are some workaround discussed in the article Can I edit or create placeholders in the email template? that you can check if it will fit your use case.
Hope this helps.
Please sign in to leave a comment.