Skip to content

Instantly share code, notes, and snippets.

@maciejmatu
Last active May 26, 2018 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maciejmatu/9da7de0818c89847041109498c07a2ea to your computer and use it in GitHub Desktop.
Save maciejmatu/9da7de0818c89847041109498c07a2ea to your computer and use it in GitHub Desktop.
Example MJML email template
<mjml>
<mj-head>
<mj-title>My Title</mj-title>
<mj-attributes>
<mj-class
name="text"
font-family="Open Sans, Arial"
color="#111111"
font-size="16px"
line-height="26px">
</mj-class>
</mj-attributes>
<mj-font name="Open Sans" href="http://fonts.googleapis.com/css?family=Open+Sans"></mj-font>
</mj-head>
<mj-body background-color="#ffffff" padding="0px">
<mj-section background-color="#f9f9f9">
<mj-column>
<mj-text mj-class="text" font-size="26px">Hello</mj-text>
</mj-column>
</mj-section>
<mj-section background-color="#f0f0f0">
<mj-column>
<mj-text mj-class="text">
Some body text. Lorem Ipsum and stuff...
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment