attachments
Arguments
- sg_mail
(required)mail object from package
- path
(required)file path to attach
- name
file name. default is path's file name
- content_id
content id. default is Null.
Examples
path <- system.file("extdata", "test.Rmd", package = "sendgridr")
mail() %>%
attachments(path)
#> SendGrid Mail -
#> ✖ from : (required)
#> ✖ to : (required)
#> ✖ subject: (required)
#> ✖ content: (required)
#> ✔ attached : cnt[1] test.Rmd