to(), cc(), bcc() is for set email address to sg_mail class
Arguments
- sg_mail
(required)mail object from package
(required)email address
- name
(optional)name for email address.
Examples
mail() %>%
to("mrchypark@gmail.com")
#> SendGrid Mail -
#> ✖ from : (required)
#> ✔ to : cnt[1] mrchypark@gmail.com
#> ✖ subject: (required)
#> ✖ content: (required)
#> ✔ attach : (optional)
mail() %>%
cc("mrchypark@gmail.com")
#> SendGrid Mail -
#> ✖ from : (required)
#> ✖ to : (required)
#> ✔ cc : cnt[1] mrchypark@gmail.com
#> ✖ subject: (required)
#> ✖ content: (required)
#> ✔ attach : (optional)
mail() %>%
bcc("mrchypark@gmail.com")
#> SendGrid Mail -
#> ✖ from : (required)
#> ✖ to : (required)
#> ✔ bcc : cnt[1] mrchypark@gmail.com
#> ✖ subject: (required)
#> ✖ content: (required)
#> ✔ attach : (optional)