Create your very own Auto Publish News/Blog Site and Earn Passive Income in Just 4 Easy Steps
Regardless of who is on your list or in which industry you are working, the statistics show a significant part of your subscribers who open e -mails on mobile devices. That shouldn’t be a surprise, as mobile devices do almost everything for us.
Nevertheless, we all opened an e -mail via our phones and were frustrated by the “mobile unfriendliness”. Designing and developing reaction fast e -mails is no longer just an option, but absolutely essential.
It can be pretty easy to find reaction fast e -mail templates from your ESP. But what if you have an idea that you have to build from scratch?
As long as you have some basic coding skills, MJML is an intuitive open source framework that you can use to do the work.
What is MJML?
MJML stands for the MailJet Markup language and comes from a group of Mailjet developers (now Pathwire) who have contributed to this and more efficiently. So they developed a Markup language that simplifies the complexity of reaction fast HTML and automatically generates.
Since 2015, MJML has been a leading E -Mail -Development -Framework that personally saved me hundreds of hours in the e -mail development period.
https://www.youtube.com/watch?v=bdtmwu1ng9a
What do I need to know to use MJML?
It will be useful to have a fundamental understanding of HTML and CSS to use MJML effectively. The syntax is very similar (with opening and ending and ending day) and you still use the CSS syntax and declarations for styling your e -mail.
There are many courses that help you learn HTML and CSS.
Installation of MJML
There are some different options to set up MJML on your computer:
If you are software engineer or developer and are familiar with a CLI (command line interface)
You can also use a plugin or a package with your preferred IDE, text editor or task runner:
Here you can explore a bunch here, but the above are the most popular and some of these options are actively managed by the MJML team.
If you know nothing about the above programs or methods, you have two options:
Where can you start with MJML
MJML.IO has an excellent tutorial for the first steps that runs through the basics of the frame.
You also want to pull the MJML documentation up in a browser, as this will be the holy reference document for everything you want to achieve.
The reaction -fast e -mail template runs on two basic “blocks” with which you create an e -mail:
- -The day that describes a horizontal section of an e -mail template
- – The day that is in one explains how many columns are included in each section.
For example: Here is an e -mail template with a column:
Hello World
Here is an example of this: https://mjml.io/try-it-live/x2pky8n5taw. Click on the arrow on the right side To see a preview of the e -mail.
And here is an e -mail template with two columns:
Here is a text
Here is a text
Here is an example of “Try it”
You can see how this template reacts and automatically adapts to smaller screen sizes by clicking on the mobile symbol in the first views “Try IT Live”.
As soon as you have the structure, the rest is just styling and adaptation to ensure that your template is optimized and accessible.
Creating a basic MJML -E -Mail template
Here is an example of a basic MJML template and its different components. You can find more examples of MJML templates on your website.
Step 1: Creating a top navigation
First, we can start adding a top nav to our template: https://mjml.io/try-it-live/wikdmwfa582
To consider some things:
- It is important to put the width on everyone. Otherwise you can get some radio with the distance. Usually we use 600px width for e -mails. So insert the first with the logo on the logo size (200px) and then the second to the remaining room (400 px), and define the distance for it
- And have a standard padding so that you set it or set it on Padding = ”0PX” to install everything.
- Adding vertical align = “middle” is required to keep the text links in accordance with the logo. You may need to add additional upholstery to make everything centered and aligned.
Step 2: Creating a main -Cta/hero section
Next we create a main CTA section with a background image: https://mjml.io/try-it-live/q8qs8tofe0x
To consider important things:
- If you use a button on a background image, you need to set padding links = “0PX” and padding-light = “0PX” so that it can be centered in Outlook.(This is considered an important memory in all caps, since it is not mentioned in the documentation.)
- Even if you use a background image, always determine a background color-fallback that highlights your text so that your text is still displayed on email clients in which no images are automatically switched on (such as Outlook).
Step 3: Creating a main copy/text section
Next we create the section of the supportive copy. Here you can do other funny things like adding more columns, more pictures, etc.
https://mjml.io/try-it-live/r8dsmh8o7vn
Step 4: Creating a foot line section
Here we can use MJML’s day. If you don’t like these symbols, you can simply use your own pictures.
https://mjml.io/try-it-live/rrz85fr-8cb
The finished product
After we have carried out some improvements with font sizes and distance, we introduced ourselves: https://mjml.io/try-it-live/rrz85fr-8cb
From here we can take the MJML code that we have created and compile it so that it gives us HTML reaction quickly! We just have to click the “Show HTML” link above and we can copy/insert the HTML with our ESP. The next step is to carry out this HTML via e -mail via the acid campaign to ensure that everything is correctly optimized.
Interactive MJML components
Now that you know how to create a basic template, you can use some of the other cool, interactive integrated functions that MJML offers:
- – An interactive carousel that you can use with different pictures. (Can’t work with Yahoo and Outlook)
- -You can stack a clickable dropdown -down -down -Down -Down in the content in tabs. (May not work with Windows-based clients and Google Mail app)
- – A menu option “Hamburger” with which menu elements are hidden on the cell phone. (May not work with Outlook and Gmail -app)
In view of the fact that there are no universal support for these interactive e -mail components, it is important that your content is structured in such a way that the “fallback” is still working for these components and looks good. Therefore, it is important to test every e -mail before sending!
E -mail design and developer tools
Here are some helpful tools that I used with MJML that helped my e -mail developer workflow:
- Atom.io -large text editor with an MJML plugin with which you can use the e -mail in the editor in the preview
- Zeplin.io – This tool is invaluable if you work with creative people who design e -mails. As a result, designs are designed directly by Adobe, Sketch and other design tools and show you precise dims, distance/upholstery and image exports, which saves a number of time to get the e -mail so that the e -mail exactly how The design looks.
- Adobe Illustrator, Adobe XD, Photoshop -very practical for any image change or other creative/design requirements that you need when coding an e -mail.
- E -mail on acid account -a shameless plug, but full testing of your e -mails is an essential part of the e -mail developer process. Unlimited E -Mail tests are also a great advantage for e -mail developers.
- Collection for ewmgoodemails.com -a great design resource that also shows you the code of every e -mail template.
- Ezgif.com – A really fast and useful tool for the size and compression of GIFs that you want to use in e -mail. Especially if you try to keep the GIF size below 3 MB.
9 Helpful MJML development tips
- If you have problems with buttons on a background image, put the padding links and the upholstery on 0PX, which are contained in one with a background image. This ensures that the button is centered in Outlook.
- Always have a fallback color for a with a background image for clients that do not display automatic images.
- Always declare a line height in, especially for larger font sizes in which Outlook cut the text. It enables the standard values for components so that you can have a certain line height.
- You can’t “nest”. If you believe that you have to insert two columns into a column, you may try to use one within A. Could also be another option in which you can look at.
- If you need more than 4 columns in a certain section, you should consider instead. If you use this, it will not be stacked on your cell phone. Therefore, it is probably only best for minor content.
- Basically there is a standard padding for every MJML day (,,, etc.). So if you have a distance problems, try to adjust your padding to 0PX first.
- If you don’t want your columns to stack on your cell phone, use it before the ‘s.
- “Minify HTML” is recommended if you export your HTML to use with your ESP. Try this option if you have problems stacking on your cell phone.
- Always test before sending! Use a campaign criminal offense to ensure that the links are valid, your spelling is correct, your e -mail is accessible and that it is correct in all of the inboxes.
Discover everything MJML E -Mail market offers
This is only the tip of the iceberg for MJML. There is much more what you can do. A possible next step could use it to set up reusable attributes in ‘s,’ s, ‘s,’ s etc. so that you can save even more devic times. Hopefully this will give you a good starting point and at least a basic knowledge that you can build.
Author: Trevor Rawls
Trevor is e -mail about the digital marketing manager from ACID. Before he came to e -mails via acid, he developed marketing strategies for companies in technology, education and E -Commerce. Trevor has two cats that he goes through the greater Denver area on the lines.
Create your very own Auto Publish News/Blog Site and Earn Passive Income in Just 4 Easy Steps



