add_attachment: add attachment to email

View source: R/main.R

add_attachmentR Documentation

add attachment to email

Description

add attachment to email to email base created earlier by email_base()

Usage

add_attachment(mail_base, att_content = NULL, att_type = "html",
  att_filename = NULL, tobase64 = TRUE)

Arguments

mail_base

base of email, created by email_base()

att_content

string, path and filename

att_type

string, type of content, default 'html'

att_filename

string, filename

tobase64

logical. By default attachment files converted to base64 inside function. Set to FALSE otherwise

Examples

my_mail <- email_base()
add_attachment(my_mail, 'picture.png')

barvinch/sendRgrid documentation built on Dec. 31, 2022, 8:48 p.m.