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)


mrchypark/sendgridr documentation built on Feb. 15, 2024, 9:33 p.m.