
Don’t worry if you’re a newcomer: applying to the MJML API beta and creating a Mailjet account are totally free. To use it, you’ll just need valid credentials for both the MJML API and Mailjet’s Transactional Send API. We’ve also created an easy-to-execute tool, written with NodeJS, to test emails under actual conditions. So let’s jump over our step-by-step tutorial on Github. We bet you can’t wait to see it in action. With our predefined templating language functions, you will be able to adjust your template based on the frequency of open and click events. You will have some everyday readers, and some who only open your digest once every few months. The frequency of an email digest template is key. Combine them with templating language variables and you’ll be able to display your user’s data to make they experience really unique. Put yourself in your reader's shoes for a minute.Do you feel your digest has been built expressly for you? Of course, it is composed of a curated list created by your backend algorithms, but is it enough to feel it’s dedicated to you only? When you send an email with Mailjet, you can use contact properties to tailor the message to the right reader, using the data you added for each contact. The best way to iterate over it and access every item’s object is to use templating language “for” loops. Sending a digest with only one article is very uncommon, so you’ll have to deal with an array of data. A digest usually contains four kinds of data: a title, an image, a short description of the article and a link to the article.
