Displays a responsive image in your email. It is similar to the HTML <img/> tag. Note that if no width is provided, the image will use the parent column width.

mj_image(src, ...)

Arguments

src

image source.

...

Unnamed items that comprise this list of MJML tags.

See also

Examples

mj_ml( mj_body( mj_image(paste0("https://media.vanityfair.com/photos/", "54cbf3da998d4de83ba3602a/master/w_960,c_limit/image.jpg")) ) )
#> <mjml> #> <mj-body> #> <mj-image src="https://media.vanityfair.com/photos/54cbf3da998d4de83ba3602a/master/w_960,c_limit/image.jpg"></mj-image> #> </mj-body> #> </mjml>