Skip to contents

Wrapper around gmailr::gm_auth() with the default New Graph email address. Call once per session before mc_send().

Usage

mc_auth(email = default_from())

Arguments

email

Email address to authenticate as. Default uses getOption("mc.from"), then the MC_FROM environment variable. Errors if neither is set.

Value

Invisible NULL. Called for side effect of authenticating.

Examples

if (FALSE) { # \dontrun{
mc_auth()

# Set globally in .Rprofile to avoid passing email every time:
options(mc.from = "you@example.com")
} # }