attachments: attachments

View source: R/set_mail.R

attachmentsR Documentation

attachments

Description

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)


sendgridr documentation built on Nov. 10, 2022, 5:15 p.m.