send_email: send_email

View source: R/emailjsr.R

send_emailR Documentation

send_email

Description

Send email using emailjs service.

Usage

send_email(
  service_id,
  user_id,
  template_id,
  template_params = list(),
  access_token = NULL
)

Arguments

service_id

emailjs.com Service Id

user_id

emailjs.com User Id or Public Key

template_id

emailjs.com Template Id

template_params

Params passed to emailjs.com. You should set template at emailjs.com in prior.

access_token

emailjs.com Access Token or Private Key. Default is NULL in case of you don't use access token.

Value

response() Return A response() object of httr, including response of emailjs server

Note

You should allow EmailJS API for non-browser applications.

Examples

library(emailjsr)

send_email("service_id", "user_id", "template_id", "access_token", list(name = "John Doe"))


emailjsr documentation built on Dec. 23, 2022, 1:27 a.m.