Core components of an MJML email.

mj_ml(...)

mj_head(...)

mj_body(...)

mj_include(...)

Arguments

...

Unnamed items that comprise this list of MJML tags.

Functions

  • mj_ml Core parent, equivalent to <html></html>.

  • mj_head Contains everything related to the document such as style and meta elements.

  • mj_body Contains everything related to the content of your email..

  • mj_include This tag allows you to include external files.

Examples

mj_ml( mj_body( mj_column( width = "20%", mj_text("First columns") ), mj_column( width = "80%", mj_text("The body") ) ) )
#> <mjml> #> <mj-body> #> <mj-column width="20%"> #> <mj-text>First columns</mj-text> #> </mj-column> #> <mj-column width="80%"> #> <mj-text>The body</mj-text> #> </mj-column> #> </mj-body> #> </mjml>