Email Templates Not Rendering - HTML Code Displayed in Sent Emails (v9.2.5)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Segelwolf
    Junior Member
    • Sep 2025
    • 10

    #1

    Email Templates Not Rendering - HTML Code Displayed in Sent Emails (v9.2.5)

    Hello,
    I'm experiencing a critical issue with email templates in EspoCRM 9.2.5 that makes them completely unusable for production.
    The Problem:
    When I create an email template with HTML content and use it to compose an email, the recipient receives the raw HTML code instead of the rendered email. The template displays as unformatted code in both the composer and the received email.
    Steps to Reproduce:
    • Create an email template (Administration → Email Templates)
    • Enable "HTML" checkbox
    • Add HTML content with images and tables:
    • <html>

    <divstyle="text-align:center;margin-bottom:30px;"> <imgsrc="https://example.com/logo.png"width="350"style="display:block;margin:0 auto;"> </div> <p>Hallo {Person.firstName},</p> <tableborder="0"cellpadding="0"cellspacing="0"style="border-top:1px solid #d0d7e3;"> <tr> <td>Contact information here</td> </tr> </table>
    • Save template
    • Go to Contacts → Select contact → Compose Email
    • Select the template from dropdown
    • Send email
    Expected Result: The email composer should display the rendered HTML, and the recipient should receive a properly formatted email with images and styled content.
    Actual Result:
    • The email composer shows raw HTML code (all tags visible)
    • The recipient receives raw HTML code in the email body
    • Placeholders like {Person.firstName} are replaced correctly, but HTML is not rendered
    Configuration:
    • EspoCRM Version: 9.2.5
    • Hosting: all-inkl.de (shared hosting)
    • SMTP: Working correctly (emails send and receive fine)
    • Template "HTML" checkbox: Enabled
    • Placeholder: Person
    What I've Tried:
    • Verified HTML checkbox is enabled
    • Tested with simple HTML (same issue)
    • Cleared cache and rebuilt
    • Tested different email clients (Thunderbird, Gmail) - all show raw HTML
    • Reviewed forum threads about similar issues
    Additional Notes: This appears to be a known issue based on forum discussions, where the Summernote editor strips or doesn't properly render HTML in email templates. This makes professional email templates completely unusable in production.
    Is there:
    • A configuration setting I'm missing?
    • A workaround for this issue?
    • A fix planned for this in future versions?
    • An alternative approach to sending HTML emails with proper formatting?
    This is a fundamental feature for any CRM system, and I'm surprised this isn't working out of the box. Any help would be greatly appreciated.
    Thank you!




















  • victor
    Active Community Member
    • Aug 2022
    • 1059

    #2
    To insert HTML code, you must first click on Code View "</>":

    Click image for larger version

Name:	image.png
Views:	0
Size:	39.9 KB
ID:	123368
    And only then add the HTML code and save the changes to the template.

    Comment

    Working...