![]() You can set one or more servers and a random one will be used. Or run your own HTTP-server (for example ) to render templates.Ĭonfigure your Django: MJML_BACKEND_MODE = 'httpserver' This mode is faster than cmd and a bit slower than tcpserver, but you can use official MJML API ![]() You can set several servers and a random one will be used: MJML_TCPSERVERS = [ĭon’t forget to install requests to use this mode. MJML is a framework for developing responsive email templates, which renders across a wide range of email providers, web browsers and operating systems. It essentially provides a layer of abstraction over raw HTML. This mode is faster than cmd but it needs the MJML TCP-Server.Ĭonfigure your Django: MJML_BACKEND_MODE = 'tcpserver' MJML is a responsive email framework from Mailjet. Once you have a working installation, you can skip the sanity check on startup to speed things up: MJML_CHECK_CMD_ON_STARTUP = False tcpserver mode Responsive email made easy with MJML Whatever the device and email client your subscribers open your email on, they expect to see your message beautifully styled and rendered. You can change MJML_EXEC_CMD and set path to executable mjml file, for example: MJML_EXEC_CMD = '/home/user/node_modules/.bin/mjml'Īlso you can pass addition cmd arguments, for example: MJML_EXEC_CMD = This mode is very simple, slow and used by default.Ĭonfigure your Django: MJML_BACKEND_MODE = 'cmd' There are three backend modes for compiling: cmd, tcpserver and httpserver. MJML is a modern email tool that allows developers to create great emails that are beautiful and responsive across all devices and mail clients. Simplifying email template creation through the use of MJML framework by Tim Gilmartin Smartbox engineering Medium Simplifying email template creation through the use of MJML.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |