Using MJML in Elixir & Phoenix

How to create responsive HTML emails for your Phoenix app with ease

Paul Götze
Aug 2 · 5 min read
Image for post
Image for post

Adding MJML Support via the npm Package

$ node bin/mjml.js "<mj-html></mj-html>"

Running the MJML Transpiling From Elixir


Adding MJML Rendering to Bamboo Emails


A Word About Performance


Speeding Up MJML Transpiling with NIFs


Wrapping Up


The Startup

Medium's largest active publication, followed by +704K people. Follow to join our community.

Paul Götze

Written by

Creator of adoptoposs.org. Authoring code @MindDoc. Comics addict and fan of bad jokes.

The Startup

Medium's largest active publication, followed by +704K people. Follow to join our community.

Paul Götze

Written by

Creator of adoptoposs.org. Authoring code @MindDoc. Comics addict and fan of bad jokes.

The Startup

Medium's largest active publication, followed by +704K people. Follow to join our community.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app