Skip to contents

attachments

Usage

attachments(sg_mail, path, name, content_id)

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.

Value

sg_mail class with attachments.

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