Test emails ignore Pre-Header (preview text) for Code Editor templates
G
GS Youngblood
When I send a test email from a Code Editor email template, the inbox preview text doesn't come through. The inbox shows the first line of the email body instead. When the same template goes out through a real workflow Send Email action, the Pre-Header field from that step works correctly. I confirmed this with a one-step test workflow sent to my own contact.
Since the test send doesn't match what goes out in production, I can't use it to check my emails before they go live. Please make test sends use the Pre-Header / preview text, the same way workflow sends do.
Log In
A
Amjad Iqbal
Until test sends pick up the Pre-Header, a workaround that makes them match production: put the preview text in the HTML itself.
- Open the template in the Code Editor.
- Right after the opening <body> tag, add a hidden preheader: <div style="display:none;max-height:0;overflow:hidden;mso-hide:all;">Your preview text here</div>
- Send a test: the inbox now shows that text instead of the first line of the body.
Good to know: for workflows that send this template, leave the Send Email step's Pre-Header field empty, so the hidden div is the only preview text and tests and live sends look the same.
— Amjad, GHL workflows & integrations