# Possible to customise trigger emails sent?

**URL:** https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321
**Category:** Technical assistance
**Created:** [December 13, 2024, 8:30am UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321 "2024-12-13T08:30:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![500sl](https://community.zammad.org/user_avatar/community.zammad.org/500sl/32/11219_2.png) [@500sl](https://community.zammad.org/u/500sl)
#### Post date: [December 13, 2024, 8:30am UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/1 "2024-12-13T08:30:48Z")

</div>

Can somebody please advise whether it’s possible to manually edit the HTML code for the trigger emails? By default, the auto reply (on new tickets) trigger is enabled. The body section in the web interface is limited with respect to formatting HTML options eg. inline images, fonts, etc…

I have made a custom HTML file with custom fonts, alignment, images, etc.

Can somebody please advise where the HTML file for the trigger (auto reply (on new tickets)) is stored so I can manually upload/replace with a custom one?

I’m not talking about custom notifications, rather, the HTML body of the trigger emails.

Thank you in advance.

---

<div class="post-metadata">

### Author: ![500sl](https://community.zammad.org/user_avatar/community.zammad.org/500sl/32/11219_2.png) [@500sl](https://community.zammad.org/u/500sl)
#### Post date: [December 13, 2024, 8:58am UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/2 "2024-12-13T08:58:22Z")

</div>

Further to my last message, I’ve connected to the postgresql and can see where the HTML code for the trigger goes. In the triggers table there are 3 rows. The first row, auto reply (on new tickets), in the perform column has the following format:

notification.email:  
body: |-  
(body HTML here)  
internal: ‘false’  
recipient:

- article\_last\_sender  
subject: Thanks for your inquiry (#{ticket.title})  
include\_attachments: ‘false’

The problem is when I update the body: section and put the styled HTML code, it looks perfect when looking at the webgui but the email received drops all styling information.

 ![Screenshot 2024-12-13 at 7.53.35 pm](https://community.zammad.org/uploads/default/original/2X/1/101919050320f8727956a614a9b19bb8489cda5f.png)

Is there any way to get triggers with styled HTML to work?

---

<div class="post-metadata">

### Author: ![500sl](https://community.zammad.org/user_avatar/community.zammad.org/500sl/32/11219_2.png) [@500sl](https://community.zammad.org/u/500sl)
#### Post date: [December 13, 2024, 12:47pm UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/3 "2024-12-13T12:47:16Z")

</div>

Zammad moderators were forced to edit this post to protect fellow Zammad administrators.

> **Dangerzone - not encouraged by Zammad**
>
> I managed to do it in the end.
> 
> A few suggestions:
> 
> - Be careful with ’ characters in your email. Use double ’ if you are inserting directly into the postgres tables.
> - Inline base 64 SVG’s aren’t supported by the majority of email clients. Use inline base 64 PNG’s.
> - Use tables to position elements instead of CSS.
> - Use align, style (font-family, font-size, x-large, color etc…) tags to style your text instead of CSS.
> 
> Works perfect! Hope this helps others getting nice automated trigger emails.

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [December 13, 2024, 1:04pm UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/4 "2024-12-13T13:04:17Z")

</div>

You should never **ever** fiddle directly in Zammads database.  
You’re skipping sanitizing and standardizing which may lead to fatal errors and problems.

---

<div class="post-metadata">

### Author: ![500sl](https://community.zammad.org/user_avatar/community.zammad.org/500sl/32/11219_2.png) [@500sl](https://community.zammad.org/u/500sl)
#### Post date: [December 13, 2024, 1:39pm UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/5 "2024-12-13T13:39:29Z")

</div>

I 100% agree with you if zammad had a rich text html editor so I could customise the trigger emails. But given that there is no rich text html editor, how else could I have done it?

This is in no way a critique of the software as it was quite straightforward in the end but maybe this is something that can be implemented so others don’t have to edit the database directly.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [December 20, 2024, 1:39pm UTC](https://community.zammad.org/t/possible-to-customise-trigger-emails-sent/16321/6 "2024-12-20T13:39:56Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
