Emails

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

NAMEDEFINITION
currentDateThe current date in the format YYYY-MM-DD
currentYearThe current year
newsletter.nameThe name of the newsletter (the name of the campaign)
newsletter.urlThe URL of the newsletter (the URL of the campaign)
newsletter.unsubscribeThe URL to unsubscribe from the newsletter (it is mandatory to include this link in the email)
articlesThe list of the last articles published on the blog
articlesn.titleThe title of the article
articlesn.descriptionThe description of the article
articlesn.linkThe url of the article
articlesn.publishedDateThe 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