address: set address to sg_mail class

View source: R/set_mail.R

addressR Documentation

set address to sg_mail class

Description

to(), cc(), bcc() is for set email address to sg_mail class

Usage

to(sg_mail, email, name = "")

cc(sg_mail, email, name = "")

bcc(sg_mail, email, name = "")

Arguments

sg_mail

(required)mail object from package

email

(required)email address

name

(optional)name for email address.

Value

sg_mail class with mail address.

Examples

mail() %>%
  to("mrchypark@gmail.com")

mail() %>%
  cc("mrchypark@gmail.com")

mail() %>%
  bcc("mrchypark@gmail.com")

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