Custom Email Layout Not Working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 04:13 PM
Hi community,
I am working on customizing email layouts so that our customer's logo and color's display on all emails. However, no custom layouts are working.
I have created a layout from scratch and applied it and it wont' work. I have also used an out of the box layout and simply changed the background color in the source code and even that small customization breaks it.
Has anyone seen that before?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 04:21 PM
Where is the email function being used? We put our logo and bottom branded banner on the email template that is used if they want to email out a policy. The logo appears at the top of the email and pulls the Policy number and other policy related information at the top right below the logo. Is this how you were trying to use it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 05:50 PM
Please share your template & layout so we can assist 🙂
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2019 10:18 AM
So I applied my layout to the OOB template sc_task.itil.role
When I apply the demo layout to this template my notifications all have that layout. However, I copied the OOB one and added my own image and colors so the code looks like below. And when I change the template's email layout to the custom one, it does not apply. Not sure why my custom one wouldn't work and the OOB works when the code is the exact same minus a different color and image.....the layout looks exactly as I need in the layout record itself. just won't apply the the emails when I update the templates.
<p></p>
<table style="width: 100%; background-color: #205493;">
<tbody>
<tr>
<td>
<table style="width: 100%; text-align: center; max-width: 800px; margin: auto;">
<tbody>
<tr>
<td style="color: #e7e9eb; height: 60px; text-align: left; border-bottom: 1px solid #bec1c6; background-color: #e7e9eb; padding: 10px 0px 10px 25px;"><img align="baseline" src="/company_logo.png" vspace="" hspace="" border="" alt="" title="" height="" style="align: baseline;" /></td>
</tr>
<tr>
<td style="color: #303a46; text-align: left; font-size: 16px; background-color: #e7e9eb; padding: 25px 0px 25px 30px;">
<p class="p1">${notification:body}</p>
</td>
</tr>
<tr>
<td style="color: #303a46; height: 50px; text-align: left; font-size: 16px; background-color: #e7e9eb; padding-left: 30px;">
<p>To unsubscribe ${NOTIF_UNSUB+link_text="click here"} | To modify your notification settings ${NOTIF_PREFS+link_text="click here"}</p>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"></td>
</tr>
</tbody>
</table>