Your account sends regular email notifications to end users when events such as ticket or help center updates occur. The content and format of almost all these emails is controlled by two templates in Admin Center: an HTML template and a plain text one. Both formats are included in each email sent. The version end users see depends on their preference settings in their email applications.
You can use both templates as they come or edit them to better suit your needs. Unlike the plain text template, the HTML template also lets you customize the look and feel of the email sent from your account. For example, you can add your company logo or a call-to-action banner to match your brand identity or to more closely match the look of your help center.
Limitations
- Editing email templates isn't allowed by default for trials and might not be allowed for some accounts. To enable editing, contact Zendesk Customer Support with your subdomain, a link to your company website, and a brief description of the changes you want to make.
- Side conversation email notifications don't use the email templates.
Anatomy of the email templates
The anatomy of the HTML and plain text templates are useful to know when you customize them.
Anatomy of the HTML template
The standard HTML notification email sent from your Zendesk account looks as follows:
The side numbers in the screenshot correspond to the following components in the email templates:
email body |
The email body is represented by the Before sending out the email, the system replaces the
The email body itself is defined in a trigger. In the following trigger action, the email body is highlighted in red: In the example, the email body consists of two elements:
|
standard footer |
The standard footer consists of the following two placeholders:
Both placeholders are optional. You can delete one or both from the template. |
Anatomy of the plain text template
The plain 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 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.
If you'd like to add a line to your plain text emails, add it to the template.
Thanks for contacting Mondocam Support! {{content}} {{footer}}
Customizing your HTML email
You can customize the look and feel of the HTML email notifications sent to your customers. This section covers the following topics:
- Editing the HTML email template
- Example: Changing the color of the footer text
- Example: Adding your logo
For guidelines and recipes, see the Zendesk email design cookbook.
Editing the HTML email template
You can change the appearance of HTML emails by editing the HTML email template in Admin Center. Editing the HTML template requires a certain level of familiarity with HTML and CSS. For recipes, see the Zendesk email design cookbook. For design guidelines, see HTML guidelines for email.
The changes are applied to your outgoing email immediately after saving them. Therefore, you should preview and test your changes before applying them to the template. If you're on an Enterprise plan, you can also test email changes in a sandbox before deploying them publicly.
To edit the HTML template
-
In Admin Center, click
Channels in the sidebar, then select Talk and email > Email.
If you're on the Enterprise plan, continue by clicking Manage Settings > Templates.
- Scroll to the HTML template box.
- Modify the HTML of the template as needed.
See the Zendesk email design cookbook.
- If you want to start over with the default version, click Revert to default below the template.
- If you want to show user photos in emails, click Show user profile photos in
emails in the Email templates section.
When selected, profile photos are displayed in emails when the email client supports it. Not all email clients display images by default.
- Click Save.
Example: Changing the color of the footer text
This example shows how to change the font color of the footer to teal, which has a hex color code of #009966. For more ideas for a footer, see the following recipes in the Zendesk email design cookbook:
Suppose the footer in your template consists of the {{footer}}
and
{{footer_link}}
placeholders. If your company name is Mondocam, the
placeholders render the following line in the email sent: "This email is a service from
Mondocam. Delivered by Zendesk".
- In Admin Center, click
Channels in the sidebar, then select Talk and email > Email.
- In the Email templates section, locate the two footer placeholders and
their parent
<div>
tag:... <div style="padding: 10px; line-height: 1.5; font-family: 'Lucida Grande',Verdana,Arial,sans-serif; font-size: 12px; color: #aaaaaa; margin: 10px 0 14px 0; padding-top: 10px; border-top: 1px solid #eeeeee;"> {{footer}} {{footer_link}} </div> ...
- Change the value of
color
to #009966, which is the hex code for a shade of teal. - Click Save.
:hover
. Example: 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.
When changing text color, use sufficient color contrast for accessibility. Follow the Web Content Accessibility Guidelines (WCAG) recommendations and use tools like WebAIM color contrast checker to check the contrast ratio between the text and the background.
Example: Adding your logo
You can add your company logo to the top of your email notifications, but keep in mind that some email clients don't display images by default.
To add your company logo to your email notifications
- Insert an
<img>
tag (<img src="">
) after the<body>
tag but before the content<div>
tag. - Specify the URL of the logo image as the value of the
src
attribute. Example:<img src="https://mondocam.com/assets/logo.png"/>
- If you want to add a hyperlink to the logo, enclose the
<img>
tag in an anchor tag, as in this example:<a href="https://mondocam.com/home"><img src="https://mondocam.com/assets/logo.png"></a>
To customize your logo in more detail, see Recipe: Add your company logo in the Zendesk email design cookbook.
Customizing your plain text email
Because you can't use HTML, you can't customize the look and feel of the plain text email notifications sent to your customers. However, you can add information to your emails.
To customize the plain 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.
- If you want to start over with the default version, click Revert to default below the template.
- Click Save.
Customizing your email in triggers and automations
Triggers and automations can have actions that send email to your users. You can add HTML and Liquid markup to trigger or automation actions rather than to the email template to customize the email body. Example:
Customizing your email for multiple brands
To customize email notifications for multiple brands, you have to customize the email body in the actions of triggers and automations but keep the email template as generic as possible because you only have one. In other words, you use a single template for all brands but customize different actions for each brand. For more information, see the following resources:
- Using the email template with multiple brands
- How to structure your email template to use custom HTML layouts for each of your multiple brands, a tip contributed by Andrew Soderberg
Placeholder reference for the HTML email template
Most of the content in notification emails is generated dynamically by the Zendesk system.
The generated content is represented by placeholders in the email templates. The
placeholders are enclosed in double curly quotes, such as {{footer}}
.
The placeholders insert the email contents and footer text.
{{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.
- Quoted content may not include attachments, depending on how the ticket was
created:
- Attachments are not included in the quoted content if the ticket was created by email.
- Attachments are included in the quoted content if the ticket is created by web form (or another non-email channel).
{{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.
{{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.
{{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.
36 comments
Katie Dougherty
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?
0
Greg Williams
@... 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?
0
Katie Dougherty
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.
0
Bill Bailey
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?
0
Brett Bowser
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!
3
Daniel Sauve
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!
3
Cheeny Aban
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
1
Ingo Kaiser
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.
0
Amy Gracer
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?
0
Cheeny Aban
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
0
Adam
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?
0
Dainne Kiara Lucena-Laxamana
Hi Adam!
![](/hc/user_images/dvgWtfraKQ0nZdbIDitXVQ.png)
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?
0
Adam
Hi Dainne Kiara Lucena-Laxamana!
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
0
William Grote
is there an easy way just to make a few words BOLD in the standard email response so they stand out more -
0
Dainne Kiara Lucena-Laxamana
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.
1
Roy Landman
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).
0
Adam
Hi Dainne Kiara Lucena-Laxamana!
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?
0
Dave Dyson
Hi Roy Landman,
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
0
Oli
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.
0
Merli
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?
0
Christian Maynard-Phillip
Is it possible to remove the encoded ID completely from the footer? Thank you Dainne Kiara Lucena-Laxamana.
- Christian
0
Dane
As it turns out, encoded ID cannot be removed as it is necessary to ensure that all ticket replies are threaded properly.
0
Ahsan Amin
Hello Zendesk Team,
![](/hc/user_images/ctrs-gjrzFzp0DUFIgwa6w.jpeg)
![](/hc/user_images/YtUQo6elvE4J-dWpsNPePw.jpeg)
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
0
Brett Bowser
I'd recommend taking a look at this thread: Customizing your templates for email notifications
I hope this helps!
0
Michal Zawalski
Hi,
Is there any way to get the defined Email template from Zendesk settings via Zendesk Rest API?
0
Alex
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.
0
Lolu
Can we add Javascript to the email template?
0
Cheeny Aban
As of the moment, Zendesk do not provide support for third-party technologies such as JavaScript, jQuery, or CSS.
0
Abdelhameed Khaled
can we create and add our own placeholder or use placeholders such as {{ticket.brand}}
0
Noly Maron Unson
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.
0