Symfony y MJML. Enviando emails como un profesional

Guía básica para enviar emails empleando el lenguaje MJML y Symfony

Image for post
Image for post
Photo by Muukii on Unsplash

¿Qué es MJML?

Estructura básica de un email con MJML

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Integración de MJML con Symfony y Twig

yarn add mjml
Image for post
Image for post
mjml templates/emails/mjml/*.mjml.html.twig -o templates/emails
"scripts": {"build:email": "mjml templates/emails/mjml/*.mjml.html.twig -o templates/emails"},
yarn build:email

Escapar etiquetas dentro de MJML

Image for post
Image for post
Image for post
Image for post

Agradecimientos y conclusiones

¿Quieres recibir más artículos como este?

Written by

Entre paseo y paseo con Simba desarrollo en Symfony y React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store