The Listmonk delivery tool does not natively offer a field to define the email preview text (preheader). Yet, this text is crucial for increasing open rates. This guide explains how to properly integrate it via HTML code and how to test the rendering using dummy data.
The preheader is the first line of text that appears following the subject line in an email client. Without intervention, email clients display the first textual elements encountered, which can detract from the message’s professionalism.
The following code must be inserted at the very beginning of your message, even before the header banner.
<div style="display: none; max-height: 0px; overflow: hidden;">
YOUR_PREVIEW_TEXT_HERE
</div>
<div style="display: none; max-height: 0px; overflow: hidden;">
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
</div>
To validate the preheader rendering and personalization (such as the subscriber’s name), it is essential to use Listmonk’s preview tools.
In the Campaigns tab, ensure you define:
To test your personalization tags, go to the Preview tab of your campaign. Listmonk allows you to define a dummy subscriber JSON. This simulates a real profile without sending an email to your database.
Example JSON to use for testing the message:
{
"email": "test@example.be",
"name": "Amaury",
"attributes": {
"city": "Brussels",
"interest": "Linux"
}
}
+-------------------------------------------------------------+
| CAMPAIGN: [ New Wiki Update ] |
+-------------------------------------------------------------+
| Body | [ Preview ] | Settings | Sending |
+-------------------------------------------------------------+
| |
| [ HTML Rendering Preview ] |
| +-------------------------------------------------------+ |
| | (Your email with the banner appears here) | |
| +-------------------------------------------------------+ |
| |
| [ Subscriber Metadata (JSON for testing) ] |
| +-------------------------------------------------------+ |
| | { | |
| | "name": "Amaury", | |
| | "email": "test@blablalinux.be" | |
| | } | |
| +-------------------------------------------------------+ |
| |
| [ Button: Send a Test ] [ Button: Regenerate ] |
+-------------------------------------------------------------+
Note: The preheader text will not appear in the Listmonk visual preview (as it is hidden by CSS). To truly validate it, you must click « Send a Test » to your own email address.
Once the email is received, here is how the different elements interact to create a professional presentation:

<div> tag. It complements the subject to encourage opening. ‌ string works its magic. It creates an invisible « void » that fills the preview line. ‌ string to prevent the beginning of the email body from « polluting » the preview in the inbox.Example Listmonk distribution campaign from BlablaLinux, « Wiki » list 👇
