Customize your email with MJML

You can customize the e-mail template that will be sent to your subscribers when a new blog post is published, or you can use the default template.
Here is an example of a custom email template made with MJML:
Email example

MJML syntax

The templating system is based on the MJML syntax.
More information on MJML syntax can be found in the MJML documentation and you can use the MJML live editor to test your template.
It is possible to start from pre-built templates and adapt them to your needs.

Mustache syntax

MJML templates can be customized with variables. Variables are replaced by their values when the email is sent.
You can use the Mustache syntax to manipulate variables in your template.
Look at the default email template to see how variables are used.

Available variables

Name Definition
currentDate The current date in the format YYYY-MM-DD
currentYear The current year
newsletter.name The name of the newsletter (the name of the campaign)
newsletter.url The URL of the newsletter (the URL of the campaign)
newsletter.unsubscribe The URL to unsubscribe from the newsletter (it is mandatory to include this link in the email)
articles The list of the last articles published on the blog
articles[n].title The title of the article
articles[n].description The description of the article
articles[n].link The url of the article
articles[n].publishedDate The publication date of the article
campaign.* The different (optional) social media accounts related to the campaign:
campaign.twitter
campaign.facebook
campaign.instagram
campaign.linkedin
campaign.mastodon
campaign.youtube