Description Usage Arguments Value Functions See Also Examples
Save your email with .mjml
extension.
1 2 3 4 5 | mj_convert(mjml, output = NULL, path = NULL)
mj_validate_mjml(input, path = NULL)
mj_sendmailr(mjml, path = NULL)
|
mjml |
MJML email as returned by |
path |
Path to mjml installation, if |
input, output |
input and output files. |
... |
Any other option to be passed to |
Path to output
.
mj_convert
Convert to .html
.
mj_validate_mjml
Validate .mjml
file.
mj_sendmailr
Convert mjml to sendmailR mimepart.
https://mjml.io/documentation/#command-line-interface
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | email <- mj_ml(
mj_body(
mj_container(
mj_section(
mj_column(
mj_text("First column")
),
mj_column(
mj_text("Second column")
)
),
mj_section(
mj_column(
mj_image(paste0("https://media.vanityfair.com/photos/",
"54cbf3da998d4de83ba3602a/master/w_960,",
"c_limit/image.jpg")
)
)
)
)
)
)
## Not run: html <- mj_convert(email)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.