Email Template Editor Breaking HTML & Sending Raw Code

Hi, I’m having major issues with the ERPNext Email Template editor. Both custom HTML and the built-in editor break immediately after saving.
**

  1. Using “Use HTML”**

When I paste valid email HTML (tables, inline styles), ERPNext modifies the HTML on save:

  • Tables break into multiple cells

  • Layout shifts

  • Inline styles disappear

  • The saved HTML is not the same as what I entered

2. Using the built-in table editor

Even if I build a simple 3-column grid without any custom HTML, the layout looks correct before saving, but after saving ERPNext:

  • Splits columns

  • Moves images/text into wrong cells

  • Breaks the entire grid

3. Using the inline HTML (< > icon)

If I use the editor’s inline HTML option, the sent email shows raw HTML code instead of rendering it.

<a href="https://alirameddevices.com/shop/" style="padding:2px 5px">Shop Thanksgiving Deals</a>

Hi, when using HTML, try to add a div tag. Don’t include the html tag. That’s how I’m doing it, and I am getting the HTML output correctly.


i’m only using inner body element

and that’s how it coming out