MJML Preview
This module helps you create MJML email templates from your Drupal content. It lets you preview the HTML generated by MJML and download the MJML template for a node.
This module allows converting a node to a MJML template and previewing the HTML generated by MJML from this template.
Features
- Download the MJML template for a node.
- Preview the HTML generated from the MJML template.
Post-Installation
You will need to ask for a MJML API key.
Then browse to /admin/config/services/mjml_preview to set your API credentials.
To write the MJML, you need to create a mjml view mode for your bundle and extend the template of this view mode in your theme.
(The template will need to contain MJML, not HTML.)
You will then have new "Preview MJML" and "Download MJML" tabs on each node.
Additional Requirements
Similar projects
This module does not allow sending MJML from Drupal (see the MJML module for this feature).
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | 10–11 | Jan 7, 2026 | ||
| 1.0.0-alpha1 | Pre-release | 10–11 | Dec 8, 2025 | ||
| 1.x-dev | Dev | 10–11 | Dec 8, 2025 |