Do you speak C#? Now, we do!

Are you a C# developer? .NET has no secrets for you? This announcement will please you! To help you leverage Mailjet APIs’ programmatic power for all your email campaigns, today we’re releasing a new wrapper dedicated to C#/.Net development, working on .NET Standard 1.1 (.NET Core 1.0 and .NET Framework 4.5).

Integrated with Visual Studio, VS Intellisense and the MSDN documentation, this new wrapper supports both the v3.0 and v3.1 APIs.

A world of APIs at hand

Following the same logic as our RESTful APIs, the C# wrapper will make you save a lot of time and complexity when it comes to managing API resources or sending emails. For instance, here’s how to make a call to the SendAPI with a few lines of code:

Is that all?

“That’s all?”, I hear you say. Quite simple, isn’t it? And the other REST actions aren’t any more complicated. But don’t take it at face value and have a look at the wrapper documentation for more detailed examples.

Tell me how to install it!

You can’t wait to use it already? To install this new wrapper, head over to its GitHub directory (under MIT License), or use NuGet package manager directly with the following command:

PM> Install-Package Mailjet.Api

That’s it! You’re all set, now go develop awesome C#/.NET applications with Mailjet! We’d love to hear more about your projects and listen to your feedback. Tell us what you think about this new wrapper on Twitter or contact us by email.

Mailjet's wrappers

Do you want to learn more about what Mailjet can offer you as a developer? Check out Mailjet for Developers and subscribe to our dev-only newsletter. Our Github account is also awaiting your visit, with lots of useful tools and plugins.

Templating Language + MJML: How To Code A Personalized Digest Email

Times flies! This is the last week of our new series of tutorial: for a month, we have shared with you how to create transactional emails templates step by step, using MJML, the open-source email framework with 5100+ ⭐ on Github, and Mailjet’s templating language.

To finish with a bang, we’ll end this series showing you how to implement an efficient personalized digest email.

Sending a digest email, a quick introduction

A digest email is a summary sent on a regular basis (daily or weekly, for instance). These emails convey information in a “digestible” way, mimicking paper publications such as the old popular Reader’s Digest. This format is fast and convenient to read and, therefore, very well received by users.

What will you need to code a digest email template?

Digest emails come in handy when you want to engage your users. In fact, their high frequency, the value they convey and the personalized touch are great advantages that tend to drive higher engagement. In this tutorial, we’ll mainly look at the three following points:

  1. How to loop over your data using our templating language’s “for” loops.
  2. How to personalize your email using variables.
  3. How to determine the frequency with which your reader opens your emails, using templating language built-in functions.

Here’s a quick preview of what it could look like:

A loop to display them all

A digest usually contains four kinds of data: a title, an image, a short description of the article and a link to the article. Sending a digest with only one article is very uncommon, so you’ll have to deal with an array of data. The best way to iterate over it and access every item’s object is to use templating language “for” loops.

Personalize all the things

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. Combine them with templating language variables and you’ll be able to display your user’s data to make they experience really unique.

What, is it Monday already?

The frequency of an email digest template is key. You will have some everyday readers, and some who only open your digest once every few months. With our predefined templating language functions, you will be able to adjust your template based on the frequency of open and click events.

We bet you can’t wait to see it in action. So let’s jump over our step-by-step tutorial on Github.

We’ve also created an easy-to-execute tool, written with NodeJS, to test emails under actual conditions. To use it, you’ll just need valid credentials for both the MJML API and Mailjet’s Transactional Send API. Don’t worry if you’re a newcomer: applying to the MJML API beta and creating a Mailjet account are totally free.

Loved this one but have missed our previous tutorials? You should definitively have a look at those too, they are pretty cool:
How to create an e-commerce receipt email
How to send a welcome series email
How to deliver abandoned cart email

Do you want to be the first to know about our next tutorials? Subscribe to our dev-only newsletter now. And if you want to chat with us, come and say “hi” on Twitter.

Join The Party: MJML Just Turned One

Back in the day, email coding was such a nightmare… And then, one year ago, MJML happened. What was simply a very cool tool designed for our own product became a huge success when we decided to offer it to the open-source community. We’re very proud of what MJML has achieved in only one year, so we decided to throw a month-long online party. We’ve been celebrating with the community throughout February, but for those who missed it, here is a recap of what happened.

MJML turned one and we can’t stop celebrating

birthday mad girl

A 2016 retrospective (or what an awesome year we all had)

When we released MJML, we knew our product was addressing a real pain point., but nothing could have prepared us for this amazing growth. Adopted by the community at an incredible speed, MJML has been featured as a top trend on platforms such as Product Hunt and Github.

MJML numbers

To give you some numbers, MJML has been forked 329 times and is heading over 5000 stars on Github. NPM downloads are also impressive, exceeding 80,000 as of today. And these figures are still growing.

The hype is real. MJML now even has its dedicated tutorial on Smashing Magazine, the reference website for web developers and designers, and some would say it’s in its way to become the new standard for email coding. ;)

This success is really due to the amazing people around here who have supported MJML since the beginning. To thank the MJML community, we created a dedicated retrospective page featuring all the major events that took place last year, giving top billing to each of the MJML contributors. And this is just our first present.

Want to learn more about it? Check out our MJML birthday post on Medium.

lord of the ring

An API to rule them all

MJML itself is coded in JavaScript and relies on the power of React and Node.js. Until today, if you wanted to integrate MJML directly into your app, you had to run it on your own NodeJS server, and wrap your application logic around it. This wasn’t an overly complicated process, but, as usual, it’s always a matter of time and resources. The community was longing for something more straightforward, so we decided to create the MJML API. Our objective: to make the MJML engine free from any language or dependency. And what’s more agnostic than HTTP?

Let’s say you want to create your own drag and drop responsive email builder. You want to leverage the power of MJML (and we do encourage you to do so). All it takes to get responsive HTML is now a simple HTTP POST request to the MJML API. The data is shaped in a JSON representation, ready to be used by your application. Imagine the possibilities!

It’s not too late to test the MJML API, which is currently in public beta. Head over to and click on the big orange button “Join the beta”. The MJML API’s documentation could come in handy as you’re uncovering all of the new possibilities the MJML API can open up for you.

Want to get even more from MJML? Time to look at our third present. Learn more about integrating MJML in your app in this Medium post.


Bow ties Accordions are cool

2017 is clearly the year of interactivity in emails, and MJML is on its way to become the standard in what is already much more than a trend.

doctor who
Accordions, Doctor, accordions. There’s no mj-bowtie yet.

Indeed, even though email has been around for a while, it can still be very hard to get interaction tricks right, mostly because of the lack of standardization among email clients. Don’t fall into despair, though: MJML is here to fight by your side.

Last November, we released the very cool mj-carousel. You read it. A true interactive carousel. In an email. Yep.

Now, it’s a child’s play to display several images without lengthening your template, a feature that comes in handy when you have to present a product for instance. And because there’s never enough interactive components, allow us to introduce you to the mj-accordion.

mjml grandpa
Maybe not this one…

Because emails with a lot of content are generally a nightmare on mobile, mj-accordion comes in useful when you want to deliver a lot of information in a concise way. Content is stacked into tabs and users can expand them at will. If responsive styles are not supported (mostly on desktop clients), tabs are then unwrapped and your content is readable at once. Yep, you’re reading it right: adding a mj-accordion to your template is just a win-win situation.

Curious? Just try the mj-accordion live now.

star wars

On the road again

Last but not least, our fourth MJML present is, once again, more than a simple gift. Because online celebrating is cool, but nothing will replace human contact, the MJML team has decided to travel all around the world to meet the MJML community in the flesh.

Four events are planned in four different cities, Paris, New York, London and Berlin. The MJML team will organize meetups and conferences, with key speakers from within the email community. A lot of surprises await, so, if you don’t want to miss a thing, stay tuned by joining the MJML slack and following MJML twitter account.

Meanwhile, be sure to have a look at MJML’s ambitious roadmap for 2017. And, with MJML 4 coming soon as a full rewrite to improve performances and ease of use, the story’s still to be written.

MJML is going on tour! If you want to learn more about our global events, check out our post on Medium.


Any wishes for the future of MJML? Let’s continue the party on Twitter using the hashtag #MJMLBirthday.