Title: | 'emailjs' Support for R |
---|---|
Description: | Use 'emailjs' API easily in R. This package is not official. <https://www.emailjs.com/docs/rest-api/send/>. |
Authors: | Changwoo Lim [aut, cre] |
Maintainer: | Changwoo Lim <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.2 |
Built: | 2024-10-29 04:46:43 UTC |
Source: | https://github.com/changwoolim/emailjsr |
Send email using emailjs service.
send_email( service_id, user_id, template_id, template_params = list(), access_token = NULL )
send_email( service_id, user_id, template_id, template_params = list(), access_token = NULL )
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. |
You should allow EmailJS API for non-browser applications.
library(emailjsr) send_email("service_id", "user_id", "template_id", "access_token", list(name = "John Doe"))
library(emailjsr) send_email("service_id", "user_id", "template_id", "access_token", list(name = "John Doe"))
emailjs.com R support with preset modal
use_emailjsr_server( id, service_id, user_id, template_id, access_token, language = "en" )
use_emailjsr_server( id, service_id, user_id, template_id, access_token, language = "en" )
id |
Should be same to id of use_emailjsr_ui |
service_id |
emailjs.com Service Id |
user_id |
emailjs.com User Id |
template_id |
emailjs.com Template Id |
access_token |
emailjs.com Access Token |
language |
Language of modal. "en" for English, and "ko" for Korean. |
library(shiny) library(emailjsr) ui <- fluidPage( use_emailjsr_ui("id") ) server <- function(input, output, session) { emailjsr::use_emailjsr_server("id", service_id = "Your_service_id", template_id = "Your_template_id", user_id = "Your_user_id", access_token = "Your_Access_Token", language = "en" ) }
library(shiny) library(emailjsr) ui <- fluidPage( use_emailjsr_ui("id") ) server <- function(input, output, session) { emailjsr::use_emailjsr_server("id", service_id = "Your_service_id", template_id = "Your_template_id", user_id = "Your_user_id", access_token = "Your_Access_Token", language = "en" ) }
emailjs.com R support with preset modal
use_emailjsr_ui(id, message = "Show feedback modal")
use_emailjsr_ui(id, message = "Show feedback modal")
id |
Should be same to id of use_emailjsr_server. |
message |
Messege on button. |
library(shiny) library(emailjsr) ui <- fluidPage( use_emailjsr_ui("id") ) server <- function(input, output, session) { emailjsr::use_emailjsr_server("id", service_id = "Your_service_id", template_id = "Your_template_id", user_id = "Your_user_id", access_token = "Your_Access_Token" ) }
library(shiny) library(emailjsr) ui <- fluidPage( use_emailjsr_ui("id") ) server <- function(input, output, session) { emailjsr::use_emailjsr_server("id", service_id = "Your_service_id", template_id = "Your_template_id", user_id = "Your_user_id", access_token = "Your_Access_Token" ) }