Embeding Rmd on body with images.
Arguments
- sg_mail
(required) mail object from package
- input
(required) input file path to render for email.
- ...
extra params pass to emayili::render() function.
Examples
# \donttest{
path <- system.file("extdata", "test.Rmd", package = "sendgridr")
mail() %>%
embed_rmd(path)
#> SendGrid Mail -
#> ✖ from : (required)
#> ✖ to : (required)
#> ✖ subject: (required)
#> ✔ content: nchr[125246] <html>
#> <head>
#> <title>hello Rmd email!< ...
#> ✔ attached : cnt[2] file19b26293c8a2.png, file19b25459363d.png
# }